Hello, I have a question. I am running a regression with panel data (7 years time period for 30 municipalities).
The model includes the year dummies (starting from 2005 until 2011). My question is: do I run the Hausman test by including the year dummies in the regression or not? Do I run Command 1 where,
Command 1:
xtreg y x1 x2 i.year, fe
estimates store fe
xtreg y x1 x2 i.year, re
estimates store re
hausman fe re
Or do I perform the Hausman test without the year dummies and then include the year dummies (i.year) in the regression after I get the result from the Hausman test?
Command 2:
xtreg y x1 x2, fe
estimates store fe
xtreg y x1 x2, fe
estimates store re
hausman fe re
I really want to make sure that I am doing the correct steps. Thank you.
The model includes the year dummies (starting from 2005 until 2011). My question is: do I run the Hausman test by including the year dummies in the regression or not? Do I run Command 1 where,
Command 1:
xtreg y x1 x2 i.year, fe
estimates store fe
xtreg y x1 x2 i.year, re
estimates store re
hausman fe re
Or do I perform the Hausman test without the year dummies and then include the year dummies (i.year) in the regression after I get the result from the Hausman test?
Command 2:
xtreg y x1 x2, fe
estimates store fe
xtreg y x1 x2, fe
estimates store re
hausman fe re
I really want to make sure that I am doing the correct steps. Thank you.
Comment