Code:
xtset, clear xtset idcode /* Here's a model with fixed effects for individual and year */ xtreg ln_w tenure age i.year, fe cluster(idcode) /* That's fine, but we have a coefficient for each year, which we don't really need to see. */ /* Is it possible to incorporate the year fixed effects implicitly, like this? */ xtset, clear xtset idcode year xtreg ln_w tenure age, fe cluster(idcode) /* Nope, these estimates are different than the previous set. They must not include year fixed effects. */ /* Here's the model with year fixed effects again. */ xtreg ln_w tenure age i.year, fe cluster(idcode)
Thanks for any clarification!
Paul
0 Response to -xtset panel time-: What does the time variable do?
Post a Comment