An Algorithm to Estimate the Two-Way Fixed Effects Model
Paulo Somaini and
Wolak Frank A.
Additional contact information
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.
Keywords: Frisch-Waugh-Lovell theorem; GMM; OLS; panel data; two-way fixed effects (search for similar items in EconPapers)
Date: 2016
References: View references in EconPapers View complete reference list from CitEc
Citations: View citations in EconPapers (13)
Downloads: (external link)
https://doi.org/10.1515/jem-2014-0008 (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/journal/key/jem/html
DOI: 10.1515/jem-2014-0008
Access Statistics for this article
Journal of Econometric Methods is currently edited by Tong Li and Zhongjun Qu
More articles in Journal of Econometric Methods from De Gruyter
Bibliographic data for series maintained by Peter Golla ().