Hi,
I have seen some people run a fixed effects regression in the following way that includes county and year fixed effects:
But I've also seen others do it the following way:
Apart from the fact that the former creates all the dummy variables and shows their coefficients in the results output, I think they should give the same coefficient for xvar. However, there's a slight difference between the two.
Are the two approaches to fixed effects necessarily the same? Why are the coefficients slightly off?
Thanks!
I have seen some people run a fixed effects regression in the following way that includes county and year fixed effects:
Code:
xi i.county i.year reg yvar xvar _I*, robust
Code:
xtset county year xtreg yvar xvar, fe robust
Are the two approaches to fixed effects necessarily the same? Why are the coefficients slightly off?
Thanks!
Comment