Dear statalists,
I hope this question is not an oldie. Surprisingly, to me, i have not found any discussion on this in the forum posts. I tried to estimate threeway fixed effects via the xtreg and interaction expansion command. My understanding was that, even though they use different calculations, they should imply the same.
However i get different results for the constant and the fe's
Does anybody know what i might be missing here? If You need more output, please let me know.
Many Thanks,
Felix Stips
I hope this question is not an oldie. Surprisingly, to me, i have not found any discussion on this in the forum posts. I tried to estimate threeway fixed effects via the xtreg and interaction expansion command. My understanding was that, even though they use different calculations, they should imply the same.
However i get different results for the constant and the fe's
Code:
reg ln_fdi_stock $distcontrolsG i.importer i.exporter i.yr xtreg ln_fdi_stock $distcontrolsG i.yr i.exporter, fe i(importer)
Code:
importer | 2 | 1.884145 .196537 9.59 0.000 1.498929 2.269362 3 | 3.169294 .2131197 14.87 0.000 2.751575 3.587013 4 | 3.461649 .1449207 23.89 0.000 3.177602 3.745696 5 | -.4018992 .1574931 -2.55 0.011 -.7105888 -.0932095 6 | 5.318759 .153963 34.55 0.000 5.016988 5.620529 7 | 2.361348 .1466429 16.10 0.000 2.073925 2.648771 8 | 1.028668 .1640239 6.27 0.000 .7071779 1.350158 9 | 1.299722 .1537005 8.46 0.000 .9984658 1.600978 10 | -.1517205 .1644365 -0.92 0.356 -.4740194 .1705783 11 | 3.332578 .1442507 23.10 0.000 3.049844 3.615312 12 | -.1590171 .316898 -0.50 0.616 -.7801434 .4621091 13 | 1.310839 .1858917 7.05 0.000 .9464882 1.675191 14 | .2286898 .160598 1.42 0.154 -.0860854 .5434651 15 | .3745796 .1999689 1.87 0.061 -.0173634 .7665227 .... _cons | 6.007166 .4020739 14.94 0.000 5.219093 6.795238 2 | .6924308 .4718152 1.47 0.142 -.2323363 1.617198 3 | 1.261118 .4470196 2.82 0.005 .384951 2.137285 4 | 3.3261 .4298435 7.74 0.000 2.483598 4.168602 5 | 4.476361 .3855753 11.61 0.000 3.720626 5.232096 6 | 1.635004 .4659014 3.51 0.000 .7218282 2.54818 7 | 6.781577 .3739167 18.14 0.000 6.048693 7.514461 8 | 5.391401 .3730204 14.45 0.000 4.660273 6.122528 9 | 1.816172 .3962854 4.58 0.000 1.039445 2.592899 10 | 5.098008 .3776053 13.50 0.000 4.357894 5.838122 11 | 3.316414 .3946715 8.40 0.000 2.54285 4.089978 12 | 1.108172 .414883 2.67 0.008 .2949931 1.921351 13 | 5.116808 .4005912 12.77 0.000 4.331641 5.901974 14 | .4545641 .3969522 1.15 0.252 -.3234701 1.232598 15 | 5.665018 .3720416 15.23 0.000 4.935809 6.394227 .... _cons | 8.455639 .3865197 21.88 0.000 7.698052 9.213225
Many Thanks,
Felix Stips
Comment