Abstract
For the panel data case where cross-sectional units are nested within higher-level groups, and there are many such groups, we propose a test that allows one to determine whether controlling for fixed effects at the more aggregate level is sufficient. The alternative is that one should allow for fixed effects at the unit level. The regression-based test is simple to carry out, even for unbalanced panels. In addition, the test is easily made robust to arbitrary heteroskedasticity, serial correlation across time, and even cluster correlation at the group level. We also show how to modify the traditional Hausman test of a single coefficient to be fully robust to serial correlation and cluster correlation. The tests work well in terms of size and power in a small simulation study. We apply the test to choosing between a fixed effects analysis at the school district level and the disaggregated school level.
Similar content being viewed by others
References
Abadie A, Athey S, Imbens GW, Wooldridge JM (2022) When should you adjust standard errors for clustering? Q J Econ (forthcoming)
Guggenberger P (2010) The impact of a Hausman pretest on the size of a hypothesis test: the panel data case. J Econom 156:337–343
Hausman JA (1978) Specification tests in econometrics. Econometrica 46(46):1251–1271
Hausman JA, Taylor WE (1981) Panel data and unobservable individual effects. Econometrica 49:1377–1398
Mundlak Y (1978) On the pooling of time series and cross section data. Econometrica 46:69–85
Papke LE (2005) The effects of school spending on test pass rates: evidence from Michigan. J Public Econ 89:821–839
Papke LE, Wooldridge JM (2008) Panel data methods for fractional response variables with an application to test pass rates. J Econom 145:121–133
Wooldridge JM (2003) Cluster-sample methods in applied econometrics. Am Econ Rev 93:133–138
Wooldridge JM (2010) Econometric analysis of cross section and panel data, 2nd edn. MIT Press, Cambridge
Wooldridge JM (2019) Correlated random effects models with unbalanced panels. J Econom 211:137–150
Wooldridge JM (2021) Two-way fixed effects, the two-way Mundlak regression, and difference-in-differences estimators. https://hq.ssrn.com/submissions/AbstractComments.cfm?AuthorID=31002 &AbstractID=3906345
Yang Y, Schmidt P (2021) An econometric approach to the estimation of multi-level models. J Econom 220:532–543
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Compliance with Ethical Standards
Leslie E. Papke declares that she has no conflict of interest. Jeffrey M. Wooldridge declares that he has no conflict of interest. This article does not contain any studies with human participants or animals performed by any of the authors.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Papke, L.E., Wooldridge, J.M. A simple, robust test for choosing the level of fixed effects in linear panel data models. Empir Econ 64, 2683–2701 (2023). https://doi.org/10.1007/s00181-022-02337-y
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00181-022-02337-y