Fast and wild: Bootstrap inference in Stata using boottest
Open accessThe DOI matches its Crossref record; 55 of the 55 references it cites were found in a registry or an index.
Abstract
The wild bootstrap was originally developed for regression models with heteroskedasticity of unknown form. Over the past 30 years, it has been extended to models estimated by instrumental variables and maximum likelihood and to ones where the error terms are (perhaps multiway) clustered. Like bootstrap methods in general, the wild bootstrap is especially useful when conventional inference methods are unreliable because large-sample assumptions do not hold. For example, there may be few clusters, few treated clusters, or weak instruments. The package boottest can perform a wide variety of wild bootstrap tests, often at remarkable speed. It can also invert these tests to construct confidence sets. As a postestimation command, boottest works after linear estimation commands, including regress, cnsreg, ivregress, ivreg2, areg, and reghdfe, as well as many estimation commands based on maximum likelihood. Although it is designed to perform the wild cluster bootstrap, boottest can also perform the ordinary (nonclustered) version. Wrappers offer classical Wald, score/Lagrange multiplier, and Anderson–Rubin tests, optionally with (multiway) clustering. We review the main ideas of the wild cluster bootstrap, offer tips for use, explain why it is particularly amenable to computational optimization, state the syntax of boottest, artest, scoretest, and waldtest, and present several empirical examples.
Overview
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
In the citing paper
“One popular approach is the wild cluster bootstrap (or wild score bootstrap for generalized linear models) [41].”
From Difference-in-Differences for Health Policy and Practice: A Review of Modern Methods (2025) · cites this paper as [41]
Citations
Cites
(2001) · RePEc: Research Papers in Economics · Cited by 27,577
A heteroskedasticity-consistent covariance matrix estimator and a direct test for heteroskedasticity
White, H. (1980) · Econometrica · doi:10.2307/1912934 · Cited by 25,861
Longitudinal data analysis using generalized linear models
LIANG, K.-Y., & ZEGER, S. L. (1986) · Biometrika · doi:10.1093/biomet/73.1.13 · Cited by 18,550
How Much Should We Trust Differences-in-Differences Estimates?
Bertrand, M., Duflo, E., & Mullainathan, S. (2004) · The Quarterly Journal of Economics · doi:10.1162/003355304772839588 · Cited by 10,641 · cited 1×
“For these reasons, the pairs cluster bootstrap can work poorly in some cases; see Bertrand, Duflo, and Mullainathan (2004) and MacKinnon and Webb (2017a).”
BackgroundBootstrap Methods and their Application
Davison, A. C., & Hinkley, D. V. (1997) · doi:10.1017/cbo9780511802843 · Cited by 7,350
Bootstrap Methods and Their Application
Loughin, T. M., Davison, A. C., & Hinkley, D. V. (1999) · Journal of the American Statistical Association · doi:10.2307/2669707 · Cited by 5,418
Estimation and Inference in Econometrics.
Chambers, M. J., Davidson, R., & MacKinnon, J. G. (1994) · The Economic Journal · doi:10.2307/2234656 · Cited by 5,413
Self-citationBootstrap-Based Improvements for Inference With Clustered Errors
Cameron, A. C., Gelbach, J. B., & Miller, D. L. (2008) · Review of Economics and Statistics · doi:10.1162/rest.90.3.414 · Cited by 4,417
Robust Inference With Multiway Clustering
Cameron, A. C., Gelbach, J. B., & Miller, D. L. (2011) · Journal of Business & Economic Statistics · doi:10.1198/jbes.2010.07136 · Cited by 3,203 · cited 1×
“Cameron, Gelbach, and Miller (2011), hereafter CGM (2011), and Thompson (2011) separately proposed a method for constructing cluster-robust variance matrices for the coefficients of linear regression models when the error terms are clustered in two or more dimensions.5 The theoretical properties of…”
MethodEconometric Theory and Methods
Davidson, R., & MacKinnon, J. G. (2003) · Cited by 1,768
Self-citationJackknife, Bootstrap and Other Resampling Methods in Regression Analysis
Wu, C. F. J. (1986) · The Annals of Statistics · doi:10.1214/aos/1176350142 · Cited by 1,724
Pitt, M. M., & Khandker, S. R. (1998) · Journal of Political Economy · doi:10.1086/250037 · Cited by 1,705
Simple formulas for standard errors that cluster by both firm and time
Thompson, S. B. (2011) · Journal of Financial Economics · doi:10.1016/j.jfineco.2010.08.016 · Cited by 1,512
Fitting Fully Observed Recursive Mixed-process Models with cmp
Roodman, D. (2011) · The Stata Journal: Promoting communications on statistics and Stata · doi:10.1177/1536867x1101100202 · Cited by 1,485
Self-citationEnhanced Routines for Instrumental Variables/Generalized Method of Moments Estimation and Testing
Baum, C. F., Schaffer, M. E., & Stillman, S. (2007) · The Stata Journal: Promoting communications on statistics and Stata · doi:10.1177/1536867x0800700402 · Cited by 1,272
Comparing Nonparametric Versus Parametric Regression Fits
Hardle, W., & Mammen, E. (1993) · The Annals of Statistics · doi:10.1214/aos/1176349403 · Cited by 1,181
Pre-Colonial Ethnic Institutions and Contemporary African Development
(2013) · Econometrica · doi:10.3982/ecta9613 · Cited by 953
Bootstrap and Wild Bootstrap for High Dimensional Linear Models
Mammen, E. (1993) · The Annals of Statistics · doi:10.1214/aos/1176349025 · Cited by 889
The Effect of Prison Population Size on Crime Rates: Evidence from Prison Overcrowding Litigation
Levitt, S. D. (1996) · The Quarterly Journal of Economics · doi:10.2307/2946681 · Cited by 817
Bootstrap Procedures under some Non-I.I.D. Models
Liu, R. Y. (1988) · The Annals of Statistics · doi:10.1214/aos/1176351062 · Cited by 640
Inference with “Difference in Differences” with a Small Number of Policy Changes
Conley, T. G., & Taber, C. R. (2011) · Review of Economics and Statistics · doi:10.1162/rest_a_00049 · Cited by 633 · cited 4×
“Figure 1: Wild bootstrap distributions of t-statistic in Conley and Taber (2011) difference-indifferences evaluation of Georgia’s HOPE program, varying the bootstrap clustering and whether the null is imposed”
BackgroundMethodInfluentialHeteroskedasticity-robust Standard Errors for Fixed Effects Panel Data Regression
Stock, J. H., & Watson, M. W. (2008) · Econometrica · doi:10.1111/j.0012-9682.2008.00821.x · Cited by 609
Some Impossibility Theorems in Econometrics With Applications to Structural and Dynamic Models
Dufour, J.-M. (1997) · Econometrica · doi:10.2307/2171740 · Cited by 556
The wild bootstrap, tamed at last
Davidson, R., & Flachaire, E. (2008) · Journal of Econometrics · doi:10.1016/j.jeconom.2008.08.003 · Cited by 506
Wild Bootstrap Inference for Wildly Different Cluster Sizes
MacKinnon, J. G., & Webb, M. D. (2017) · Journal of Applied Econometrics · doi:10.1002/jae.2508 · Cited by 454
Self-citationField, C. A., & Welsh, A. H. (2007) · Journal of the Royal Statistical Society Series B: Statistical Methodology · doi:10.1111/j.1467-9868.2007.00593.x · Cited by 426
Eicker, F. (1963) · The Annals of Mathematical Statistics · doi:10.1214/aoms/1177704156 · Cited by 382
The Impact of Microcredit on the Poor in Bangladesh: Revisiting the Evidence
Roodman, D., & Morduch, J. (2014) · The Journal of Development Studies · doi:10.1080/00220388.2013.858122 · Cited by 371
Self-citationThe wild bootstrap for few (treated) clusters
MacKinnon, J. G., & Webb, M. D. (2018) · The Econometrics Journal · doi:10.1111/ectj.12107 · Cited by 317
Self-citationTax Incentives and the Decision to Purchase Health Insurance: Evidence from the Self-Employed
Gruber, J., & Poterba, J. (1994) · The Quarterly Journal of Economics · doi:10.2307/2118419 · Cited by 303
Asymptotic properties of a robust variance matrix estimator for panel data when is large
Hansen, C. B. (2007) · Journal of Econometrics · doi:10.1016/j.jeconom.2006.10.009 · Cited by 293
Inference with dependent data using cluster covariance estimators
Bester, C. A., Conley, T. G., & Hansen, C. B. (2011) · Journal of Econometrics · doi:10.1016/j.jeconom.2011.01.007 · Cited by 258
THE SIZE DISTORTION OF BOOTSTRAP TESTS
Davidson, R., & MacKinnon, J. G. (1999) · Econometric Theory · doi:10.1017/s0266466699153040 · Cited by 206
Self-citationMacKinnon, J. G. (2009) · Handbook of Computational Econometrics · doi:10.1002/9780470748916.ch6 · Cited by 181
Self-citationA score based approach to wild bootstrap inference
Kline, P., & Santos, A. (2012) · Journal of Econometric Methods · doi:10.1515/2156-6674.1006 · Cited by 161
Wild Bootstrap Tests for IV Regression
Davidson, R., & MacKinnon, J. G. (2010) · Journal of Business & Economic Statistics · doi:10.1198/jbes.2009.07221 · Cited by 134
Self-citationReworking Wild Bootstrap Based Inference for Clustered Errors
Webb, M. D., & Webb, M. D. (2014) · RePEc: Research Papers in Economics · doi:10.22004/ag.econ.274640 · Cited by 128
Self-citationBootstrap With Cluster‐Dependence in Two or More Dimensions
Menzel, K. (2021) · Econometrica · doi:10.3982/ecta15383 · Cited by 127
Asymptotic Theory for Econometricians
Greene, W. H., & White, H. (1986) · Journal of Business and Economic Statistics · doi:10.2307/1391402 · Cited by 123
Asymptotic Behavior of a t-Test Robust to Cluster Heterogeneity
Carter, A. V., Schnepel, K. T., & Steigerwald, D. G. (2017) · The Review of Economics and Statistics · doi:10.1162/rest_a_00639 · Cited by 120
Thirty Years of Heteroskedasticity-Robust Inference
MacKinnon, J. G. (2013) · Recent Advances and Future Directions in Causality, Prediction, and Specification Analysis · doi:10.1007/978-1-4614-1653-1_17 · Cited by 114
Self-citationAsymptotic theory and wild bootstrap inference with clustered errors
Djogbenou, A. A., MacKinnon, J. G., & Nielsen, M. Ø. (2019) · Journal of Econometrics · doi:10.1016/j.jeconom.2019.04.035 · Cited by 104
Self-citationThe estimating function bootstrap
Hu, F., & Kalbfleisch, J. D. (2000) · Canadian Journal of Statistics · doi:10.2307/3315958 · Cited by 87
Discussion: Jackknife, Bootstrap and Other Resampling Methods in Regression Analysis
Beran, R. J. (1986) · The Annals of Statistics · doi:10.1214/aos/1176350143 · Cited by 76
A Score Based Approach to Wild Bootstrap Inference
Kline, P., & Santos, A. (2010) · National Bureau of Economic Research · doi:10.3386/w16127 · Cited by 71
Implementing the wild bootstrap using a two-point distribution
Davidson, J. E. H., Monticini, A., & Peel, D. A. (2007) · Economics Letters · doi:10.1016/j.econlet.2007.01.020 · Cited by 57
The Impacts of Incarceration on CrimePreprint
Roodman, D. M. (2020) · SSRN Electronic Journal · doi:10.2139/ssrn.3635864 · Cited by 48
Self-citationA Bootstrap Based on the Estimating Equations of the Linear Model
Hu, F., & Zidek, J. V. (1995) · Biometrika · doi:10.1093/biomet/82.2.263 · Cited by 45
Lee, C. H., & Steigerwald, D. G. (2018) · The Stata Journal Promoting communications on statistics and Stata · doi:10.1177/1536867x1801800210 · Cited by 36
Confidence sets based on inverting Anderson–Rubin tests
Davidson, R., & MacKinnon, J. G. (2014) · Econometrics Journal · doi:10.1111/ectj.12015 · Cited by 34
Self-citationWild Cluster Bootstrap Confidence Intervals
MacKinnon, J. G. (2016) · L Actualité économique · doi:10.7202/1036912ar · Cited by 24
Self-citationAsymptotic results under multiway clusteringPreprint
Davezies, L., D’Haultfœuille, X., & Guyonvarch, Y. (2018) · RePEc: Research Papers in Economics · doi:10.48550/arxiv.1807.07925 · Cited by 23
Bootstrap Methods for Inference with Cluster Sample IV ModelsPreprint
Finlay, K., & Magnusson, L. M. (2015) · SSRN Electronic Journal · doi:10.2139/ssrn.2574521 · Cited by 10
Bootstrap with Clustering in Two or More DimensionsPreprint
Menzel, K. (2017) · arXiv (Cornell University) · doi:10.48550/arxiv.1703.03043 · Cited by 10
Gould, W. (2010) · The Stata Journal Promoting communications on statistics and Stata · doi:10.1177/1536867x1001000111 · Cited by 3
Research works printed but not linked: 1
- MacKinnon J. G., 2017, Political Methodologist, 24, 20
Cited by
Social Media and Mental Health
Braghieri, L., Levy, R., & Makarin, A. (2022) · American Economic Review · doi:10.1257/aer.20211218 · Cited by 512
Cluster-robust inference: A guide to empirical practice
MacKinnon, J. G., Nielsen, M. Ø., & Webb, M. D. (2023) · Journal of Econometrics · doi:10.1016/j.jeconom.2022.04.001 · Cited by 407
Self-citationImplementing the panel event study
Clarke, D., & Tapia-Schythe, K. (2021) · The Stata Journal: Promoting communications on statistics and Stata · doi:10.1177/1536867x211063144 · Cited by 367
Gender Differences in the Choice of Major: The Importance of Female Role Models
Porter, C., & Serra, D. (2020) · American Economic Journal: Applied Economics · doi:10.1257/app.20180426 · Cited by 341
(The Struggle for) Refugee integration into the labour market: evidence from Europe
Fasani, F., Frattini, T., & Minale, L. (2021) · Journal of Economic Geography · doi:10.1093/jeg/lbab011 · Cited by 244
Metadata
- Authors
- Roodman, D., Nielsen, M. Ø., MacKinnon, J. G., & Webb, M. D.
- Affiliations
- Open Philanthropy Project (US)
- Aarhus University (DK)
- Queen's University (CA)
- Carleton University (CA)
- Corresponding author
- Roodman, David
- Nielsen, Morten Ørregaard
- MacKinnon, James G.
- Webb, Matthew D.
- Venue
- The Stata Journal: Promoting communications on statistics and Stata
- Publisher
- SAGE Publications
- Published
- 2019-03
- Volume
- 19
- Issue
- 1
- Pages
- 4-60
- ISSN
- 1536-867X (ISSN-L)
- 1536-8734
- OpenAlex
- W2891445448
- Cited by
- 1,007
- References
- 54
- Citations by year
- 2026: 208 · 2025: 112 · 2024: 132 · 2023: 125 · 2022: 122 · 2021: 146 · 2020: 93 · 2019: 49
- FWCI
- 79.80
- Type
- journal article
- Language
- en
- Open access
- bronze
- doi.org
- Licence
- journals.sagepub.com/page/policies/text-and-data-mining-license (tdm)
- Locations
- The Stata Journal Promoting communications on statistics and Stata (publishedVersion)
- RePEc: Research Papers in Economics (submittedVersion)
- AgEcon Search (University of Minnesota, USA) (submittedVersion, cc-by-nc-nd)
- Econstor (Econstor) (submittedVersion)
- Scopus (Elsevier) (submittedVersion, other-oa)
- AgEcon Search (University of Minnesota, USA)
- Funders
- National Research Foundation (DNRF78)
- Danmarks Grundforskningsfond (DNRF78)
- Canada Research Chairs
- Social Sciences and Humanities Research Council of Canada (DNRF78)
- Topics
- Physical Sciences › Mathematics › Statistics and Probability › Advanced Causal Inference Techniques
- Social Sciences › Economics, Econometrics and Finance › Economics and Econometrics › Spatial and Panel Data Analysis
- Physical Sciences › Mathematics › Statistics and Probability › Advanced Statistical Methods and Models
- Keywords
- wild bootstrap, wild cluster bootstrap, heteroscedasticity, clustered data, instrumental variables, weak instruments, Wald test, score test, Anderson-Rubin test, confidence regions, postestimation, Stata
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.