lfe

Linear Group Fixed Effects

Transforms away factors with many levels prior to doing an OLS. Useful for estimating linear models with multiple group fixed effects, and for estimating linear models which uses factors with many levels as pure control variables. Includes support for instrumental variables, conditional F statistics for weak instruments, robust and multi-way clustered standard errors, as well as limited mobility bias correction.

Tests Vignettes

Available Snapshots

This version of lfe can be found in the following snapshots:

Dependencies

Imports/Depends/LinkingTo/Enhances (4)
  • R
  • Formula
  • xtable
  • sandwich
  • Suggests (8)
  • knitr
  • digest
  • igraph
  • plm
  • cubature >= 2.0.3
  • numDeriv
  • data.table
  • alpaca
  • Version History