xtreg2way: Feasible Estimation of the Two-Way Fixed Effect Model

Implemented is an algorithm to estimate the two-way fixed effect linear model. 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. Somaini P., Wolak F. A. (2016) <doi:10.1515/jem-2014-0008> Arellano, M. (1987) <https://ideas.repec.org/a/bla/obuest/v49y1987i4p431-34.html>.

Package details

AuthorPaulo Somaini [aut, cre, cph], Frank Wolak [aut], Brian Chivers [aut]
MaintainerPaulo Somaini <soma@stanford.edu>
LicenseMIT + file LICENSE
URL https://github.com/paulosomaini/xtreg2way
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:

Try the xtreg2way package in your browser

Any scripts or data that you put into this service are public.

xtreg2way documentation built on Aug. 11, 2020, 9:06 a.m.