In this article, I describe an alternative approach for fitting linear models with multiple high-order fixed effects. The strategy relies on transforming the data before fitting the model. While the approach is computationally intensive, the hardware requirements for the fitting are minimal, allowing for estimation in models with multiple high-order fixed effects for large datasets. I illustrate implementing this approach using the U.S. Census Bureau Current Population Survey data with four fixed effects. I also present a new Stata command, regxfe, for implementing this strategy.
AbowdJ. M., CreecyR. H., and KramarzF.2002. Computing person and firm effects using linked longitudinal employer–employee data. Technical Paper No. TP-2002-06, Center for Economic Studies, U.S. Census Bureau. http://www2.census.gov/ces/tp/tp-2002-06.pdf.
2.
AbowdJ. M., KramarzF., and MargolisD. N.1999. High wage workers and high wage firms. Econometrica67: 251–333.
3.
AbowdJ. M., KramarzF., and WoodcockS.2008. Econometric analyses of linked employer—employee data. In The Econometrics of Panel Data: Fundamentals and Recent Developments in Theory and Practice, ed. MátyásL., and SevestreP., 3rd ed., 727–760. Berlin: Springer.
4.
AndrewsM., SchankT., and UpwardR.2006. Practical fixed-effects estimation methods for the three-way error-components model. Stata Journal6: 461–481.
5.
CameronA. C., and TrivediP. K.2005. Microeconometrics: Methods and Applications.New York: Cambridge University Press.
6.
GaureS.2013. OLS with multiple high dimensional category variables. Computational Statistics and Data Analysis66: 8–18.
7.
GuimarãesP., and PortugalP.2010. A simple feasible procedure to fit models with high-dimensional fixed effects. Stata Journal10: 628–649.
8.
HarrisD. N., and SassT. R.2011. Teacher training, teacher quality and student achievement. Journal of Public Economics95: 798–812.
9.
HotchkissJ. L., Quispe-AgnoliM., and Rios-AvilaF.2015. The wage impact of undocumented workers: Evidence from administrative data. Southern Economic Journal81: 874–906.
10.
McCaffreyD. F., LockwoodJ. R., MihalyK., and SassT. R.2012. A review of Stata commands for fixed-effects estimation in normal linear models. Stata Journal12: 406–432.
11.
StataCorp. 2015. Stata 14 Base Reference Manual.College Station, TX: Stata Press.
12.
TorresS., PortugalP., AddisonJ. T., and GuimarãesP.2013. The sources of wage variation: A three-way high-dimensional fixed effects regression model. IZA Discussion Paper No. 7276, Institute for the Study of Labor (IZA).http://ftp.iza.org/dp7276.pdf.