EconPapers    
Economics at your fingertips  
 

An Algorithm to Estimate the Two-Way Fixed Effects Model

Somaini Paulo () and Wolak Frank A.
Additional contact information
Somaini Paulo: Department of Economics, MIT, Cambridge, MA, USA
Wolak Frank A.: Department of Economics, Stanford University, Stanford, CA, USA

Journal of Econometric Methods, 2016, vol. 5, issue 1, 143-152

Abstract: We present an algorithm to estimate the two-way fixed effect linear model. The algorithm relies on the Frisch-Waugh-Lovell theorem and applies to ordinary least squares (OLS), two-stage least squares (TSLS) and generalized method of moments (GMM) estimators. The coefficients of interest are computed using the residuals from the projection of all variables on the two sets of fixed effects. Our algorithm has three desirable features. First, it manages memory and computational resources efficiently which speeds up the computation of the estimates. Second, it allows the researcher to estimate multiple specifications using the same set of fixed effects at a very low computational cost. Third, the asymptotic variance of the parameters of interest can be consistently estimated using standard routines on the residualized data.

Date: 2016
References: View references in EconPapers View complete reference list from CitEc
Citations View citations in EconPapers (1) Track citations by RSS feed

Downloads: (external link)
https://www.degruyter.com/view/j/jem.2016.5.issue- ... -0008.xml?format=INT (text/html)
For access to full text, subscription to the journal or payment for the individual article is required.

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: https://EconPapers.repec.org/RePEc:bpj:jecome:v:5:y:2016:i:1:p:143-152:n:4

Ordering information: This journal article can be ordered from
https://www.degruyter.com/view/j/jem

Access Statistics for this article

More articles in Journal of Econometric Methods from De Gruyter
Bibliographic data for series maintained by Peter Golla ().

 
Page updated 2018-05-26
Handle: RePEc:bpj:jecome:v:5:y:2016:i:1:p:143-152:n:4