Hello Forum,
I'm working on a panel model using negative binomial regression. I have an independent variable (binary) and a moderating variable (logged) that were found to have a significant interaction. I could use some assistance in determining what is going on. The coefficient of each term individually is negative, but the interaction term is positive. Additionally, when I produce the margins plot, the slopes for each categorical group slope down. However, if i simply plot (scatter plot) the original data (the moderator variable against the DV), the "trend" of the data slopes up. How can this be?
In the example provided, the scatter plot show the original, un-modeled data, covariate against the DV. I ran the model (XTNBREG), and it found the IV to be significant (negative coefficient) and the moderator to be significant (negative coefficient), and the interaction between them to also be significant (positive coefficient). When STATA plotted the margins, it shows the interaction lines sloping down - it seems to contradict the original scatter plot.
It might also be helpful to know that the DV is skewed with a lot of zeros. However, the variance is greater than the mean - hence NBREG.
Any assistance is appreciated.
I'm working on a panel model using negative binomial regression. I have an independent variable (binary) and a moderating variable (logged) that were found to have a significant interaction. I could use some assistance in determining what is going on. The coefficient of each term individually is negative, but the interaction term is positive. Additionally, when I produce the margins plot, the slopes for each categorical group slope down. However, if i simply plot (scatter plot) the original data (the moderator variable against the DV), the "trend" of the data slopes up. How can this be?
In the example provided, the scatter plot show the original, un-modeled data, covariate against the DV. I ran the model (XTNBREG), and it found the IV to be significant (negative coefficient) and the moderator to be significant (negative coefficient), and the interaction between them to also be significant (positive coefficient). When STATA plotted the margins, it shows the interaction lines sloping down - it seems to contradict the original scatter plot.
It might also be helpful to know that the DV is skewed with a lot of zeros. However, the variance is greater than the mean - hence NBREG.
Any assistance is appreciated.

Comment