Hello everyone,
I recently started using Stata and already worked through a lot of forum posts, Stata help files, tutorials and youtube videos, however, nowhere I was able to find a properly structured approach to how to handle a complete panel data OLS regression analysis (from start to finish). After finding this forum I hope I receive some valuable advice, and please excuse if I might bother some of you with such (possibly) elementary questions. Thank you very much in advance!!
This is my current approach - please comment if I miss some important steps or if additional analysis/tests might be relevant
After generating my sample I start by declaring my dataset to be panel data: xtset
I do a Hausman Test to choose between a fixed vs random effects model - my result: fe model (p-value < 0.05)
xtreg var var fixed, fe
estimates store fixed
xtreg var var fixed, re
estimates store random
hausman fixed random
Test for time fixed effects - my result: use time fixed effects (p-value < 0.1)
xtreg var var i.year, fe
testparm i.year
Now how do I proceed? Which other tests are relevant before I can run my actual regression?
Furthermore, how can I include an interaction term in my regression analysis?
I appreciate all your help! Thank you very much!
I recently started using Stata and already worked through a lot of forum posts, Stata help files, tutorials and youtube videos, however, nowhere I was able to find a properly structured approach to how to handle a complete panel data OLS regression analysis (from start to finish). After finding this forum I hope I receive some valuable advice, and please excuse if I might bother some of you with such (possibly) elementary questions. Thank you very much in advance!!
This is my current approach - please comment if I miss some important steps or if additional analysis/tests might be relevant
After generating my sample I start by declaring my dataset to be panel data: xtset
I do a Hausman Test to choose between a fixed vs random effects model - my result: fe model (p-value < 0.05)
xtreg var var fixed, fe
estimates store fixed
xtreg var var fixed, re
estimates store random
hausman fixed random
Test for time fixed effects - my result: use time fixed effects (p-value < 0.1)
xtreg var var i.year, fe
testparm i.year
Now how do I proceed? Which other tests are relevant before I can run my actual regression?
Furthermore, how can I include an interaction term in my regression analysis?
I appreciate all your help! Thank you very much!
Comment