Using `xtreg` (Fixed Effects)
Using mm.dta:
- Tell Stata that your dataset is a panel using the
xtsetcommand. Specifyqnno tindexas the panel identifiers. - Run a fixed effects regression of
yieldontotfertcosthausing thextregcommand with the, feoption. Cluster standard errors at theqnnolevel.
- Use
eststoto save the FE results. Then adapt the table structure from the previous exercise to create a table of results with a fifth column headedFE. - What is the coefficient on fertilizer cost in the FE regression and how does it compare to the coefficients you calculated in Exercises 1-3?