Dear all,
I am running a model with an interaction, namely a categorical by continuous interaction, and first, I am not fully sure how to interpret the coefficients.
Next, I try and use the -margins- command for easier interpretation, and the -marginsplot- to be able to visualize it. Nevertheless, the graph that is produces does not quite confirm my expectations.
This is the estimation:
This is my output:
I omit the rest of the output for the sake of clarity. Now, I am not fully sure on the interpretation of the coefficients. I understand that there is not such thing as a main effect, and so what I should focus on is the interpretation of the interaction.
After this, I run -margins- and -marginsplot-:
And the graph that I get is just four parallel decreasing lines. Now, I am still a bit confused in understanding the graphing correctly, so apologies if it sounds confusing, but If I expect interaction should the lines not be parallel?
I appreciate any help that I can get!
Thank you!
I am running a model with an interaction, namely a categorical by continuous interaction, and first, I am not fully sure how to interpret the coefficients.
Next, I try and use the -margins- command for easier interpretation, and the -marginsplot- to be able to visualize it. Nevertheless, the graph that is produces does not quite confirm my expectations.
This is the estimation:
Code:
xtreg Y c.X1##i.X2 X3 X4 X5 i.year, cluster(country)
Code:
---------------------------------------------------------------------------------
| Robust
Y | Coef. Std. Err. t P>|t| [95% Conf. Interval]
----------------+----------------------------------------------------------------
X1 | -1.89549 .8972797 -1.12 0.262 -2.774728 .7567906
|
X2 |
Size1 | -.6002553 .0789371 -7.60 0.000 -.755596 -.4449147
Size2 | -.3301899 .0681068 -4.85 0.000 -.4642174 -.1961624
Size3 | -.1841883 .0437547 -4.21 0.000 -.2702933 -.0980833
|
X2#c.X1
Size1#c.X1 | -1.654963 .5004158 -2.26 0.034 -2.116106 -.1465662
Size2#c.X1 | -1.88452 .4528056 -2.96 0.005 -2.232939 -.4507842
Size3#c.X1 | -.5895839 .3040435 -1.55 0.122 -1.069212 .1274443
|
After this, I run -margins- and -marginsplot-:
Code:
quietly margins X2, at(X1=(0.00 (0.03)0.30)) marginsplot, noci graphregion(color(white)) bgcolor(white)
I appreciate any help that I can get!
Thank you!

Comment