Hello dear forum members!
Consider I estimate the following model:
Next, to examine the interaction effects, I calculate the adjusted predictions and plot them:
Below are my adjusted predictions:
My question: Is it correct to use -test- (see below) to test if there is a difference between the slopes of the regression lines?
Thankfully,
Anton
Consider I estimate the following model:
Code:
xtpoisson y x1 x2 c.x1##c.x2, fe vce(robust)
Code:
margins, at(x1=(0 1) x2=(1,2,3,4,5,6,7)) marginsplot, noci
HTML Code:
------------------------------------------------------------------------------ | Delta-method | Margin Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- _at | 1 | .3913537 .0408903 9.57 0.000 .3112102 .4714972 2 | .3951653 .0509069 7.76 0.000 .2953896 .4949411 3 | .398977 .0812081 4.91 0.000 .2398119 .558142 4 | .4027886 .116969 3.44 0.001 .1735335 .6320437 5 | .4066002 .1544425 2.63 0.008 .1038984 .7093021 6 | .4104119 .1926317 2.13 0.033 .0328606 .7879632 7 | .4142235 .2311822 1.79 0.073 -.0388853 .8673324 8 | .437338 .036421 12.01 0.000 .3659542 .5087219 9 | .4744837 .0684443 6.93 0.000 .3403353 .6086321 10 | .5116294 .1181651 4.33 0.000 .28003 .7432288 11 | .5487751 .1707677 3.21 0.001 .2140766 .8834736 12 | .5859207 .224233 2.61 0.009 .1464322 1.025409 13 | .6230664 .2780638 2.24 0.025 .0780713 1.168062 14 | .6602121 .3320825 1.99 0.047 .0093423 1.311082 ------------------------------------------------------------------------------
Code:
test (1bn._at = 2._at) (2._at = 3._at) (3._at = 4._at) (4._at = 5._at) (5._at = 6._at) (6._at = 7._at) (7._at = 8._at) (8._at = 9._at) (9._at = 10._at) (10._at = 11._at) (11._at = 12._at) (12._at = 13._at) (13._at = 14._at)
Anton
Comment