Economics at your fingertips  

HDFE: Stata module to partial out variables with respect to a set of fixed effects

Sergio Correia ()

Statistical Software Components from Boston College Department of Economics

Abstract: hdfe will partial out a varlist with respect to a set of fixed effects. It will either overwrite the dataset in memory, or generate new variables. hdfe is the underlying procedure for the reghdfe module, which contains more details about the routine. It can be used as a building block for any regression command that wishes to include multiple high-dimensional fixed effects. It is not a package intended for an end user, but for a package developer. The partialling out is done employing an extension of the methodology of Guimaraes & Portugal (2010), described in detail by Correia (2015, mimeo). It generalizes the within transformation thanks to an iterated application of the Frisch-Waugh-Lovell theorem. For more details, see the Guimaraes & Portugal paper, the help file, or Guimaraes and Portugal (2009).

Language: Stata
Requires: Stata version 11.2
Keywords: fixed effects; high dimensional fixed effects; absorb; hdfe; areg; reghdfe; within (search for similar items in EconPapers)
Date: 2015-03-28, Revised 2016-08-06
Note: This module should be installed from within Stata by typing "ssc install hdfe". The module is made available under terms of the GPL v3 ( Windows users should not attempt to download these files with a web browser.
References: Add references at CitEc
Citations: Track citations by RSS feed

Downloads: (external link) program code (text/plain) help file (text/plain)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link:

Ordering information: This software item can be ordered from

Access Statistics for this software item

More software in Statistical Software Components from Boston College Department of Economics Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().

Page updated 2022-01-19
Handle: RePEc:boc:bocode:s457985