Using `xtreg` (Fixed Effects)

Using mm.dta:

  • Tell Stata that your dataset is a panel using the xtset command. Specify qnno tindex as the panel identifiers.
  • Run a fixed effects regression of yield on totfertcostha using the xtreg command with the , fe option. Cluster standard errors at the qnno level.
  1. Use eststo to save the FE results. Then adapt the table structure from the previous exercise to create a table of results with a fifth column headed FE.
  2. 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?