I am trying to see if age has an impact on school performance. I am adding year fixed effects and individual fixed effects. My code is
reghdfe performance age, a(year individual) vce(cl school)
I am confused as to why age gets omitted. I think of year fixed effects as dummies for each year. Age is not year-invariant, it increases by one each year (like a trend variable). I am not seeing how this creates problematic collinearity.
When I use:
xtset individual year
xtreg performance age i.year, fe vce(cl school)
It estimates the impact of age without omission of the variable.
Thank you so much for your help in advance!
reghdfe performance age, a(year individual) vce(cl school)
I am confused as to why age gets omitted. I think of year fixed effects as dummies for each year. Age is not year-invariant, it increases by one each year (like a trend variable). I am not seeing how this creates problematic collinearity.
When I use:
xtset individual year
xtreg performance age i.year, fe vce(cl school)
It estimates the impact of age without omission of the variable.
Thank you so much for your help in advance!
Comment