Adding Time Fixed Effects (Fixed Effects)
Using mm.dta, let’s extend our models from the One-Way FE lecture.
- Ensure your data is
xtset qnno tindex. - Run a standard One-Way Fixed Effects model. Regress
yieldon fertilizer cost (totfertcostha) usingxtreg, fe. Cluster standard errors at theqnnolevel. - Run a standard Two-Way Fixed Effects model. Regress
yieldon fertilizer cost (totfertcostha) usingxtreg, fe, but this time include time fixed effects by addingi.tindexto your list of covariates. Cluster standard errors at theqnnolevel. - Now estimate the exact same model using the
reghdfecommand. Specifyabsorb(qnno tindex)to absorb both individual and time fixed effects. Cluster standard errors at theqnnolevel.
- Use
eststoto save each of the three results. Then adapt the table structure from the Exercise 1 to create a table of results heading columns withOWFE,TWFE, andreghdfe. - How do the estimates on
totfertcosthacompare across the three models? Did aggregate time shocks bias the one-way fixed effect estimator?