Inference With Difference-in-Differences With a Small Number of Groups: A Review, Simulation Study, and Empirical Application Using SHARE Data
Open accessThe DOI matches its Crossref record; 37 of the 37 references it cites were found in a registry or an index.
Abstract
Background: Difference-in-differences (DID) estimation has become increasingly popular as an approach to evaluate the effect of a group-level policy on individual-level outcomes. Several statistical methodologies have been proposed to correct for the within-group correlation of model errors resulting from the clustering of data. Little is known about how well these corrections perform with the often small number of groups observed in health research using longitudinal data. Methods: First, we review the most commonly used modeling solutions in DID estimation for panel data, including generalized estimating equations (GEE), permutation tests, clustered standard errors (CSE), wild cluster bootstrapping, and aggregation. Second, we compare the empirical coverage rates and power of these methods using a Monte Carlo simulation study in scenarios in which we vary the degree of error correlation, the group size balance, and the proportion of treated groups. Third, we provide an empirical example using the Survey of Health, Ageing, and Retirement in Europe. Results: When the number of groups is small, CSE are systematically biased downwards in scenarios when data are unbalanced or when there is a low proportion of treated groups. This can result in over-rejection of the null even when data are composed of up to 50 groups. Aggregation, permutation tests, bias-adjusted GEE, and wild cluster bootstrap produce coverage rates close to the nominal rate for almost all scenarios, though GEE may suffer from low power. Conclusions: In DID estimation with a small number of groups, analysis using aggregation, permutation tests, wild cluster bootstrap, or bias-adjusted GEE is recommended.
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
“While normal-based inference accounts for error correlation within clusters, it requires a substantial number of both treated and untreated clusters (e.g., at least 25 or 30 clusters in each class), which may not exist in many DiD applications (Table 4, row 1) [17, 114].”
From Difference-in-Differences for Health Policy and Practice: A Review of Modern Methods (2025) · cites this paper as [114]
In the citing paper
“Simulations suggest that these methods can perform well with about five clusters, although estimates may be conservative when the proportion of treated units is small (Table 4, row 2) [39, 114, 116].”
From Difference-in-Differences for Health Policy and Practice: A Review of Modern Methods (2025) · cites this paper as [114]
In the citing paper
“If there are only a few clusters in the data, normal-based clustered standard errors are typically anti-conservative [114, 115], leading to inappropriately small p values and an inflated Type I error rate.”
From Difference-in-Differences for Health Policy and Practice: A Review of Modern Methods (2025) · cites this paper as [114]
Citations
Cites
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
Longitudinal Data Analysis for Discrete and Continuous Outcomes
Zeger, S. L., & Liang, K.-Y. (1986) · Biometrics · doi:10.2307/2531248 · Cited by 7,764
A Practitioner’s Guide to Cluster-Robust Inference
Colin Cameron, A., & Miller, D. L. (2015) · Journal of Human Resources · doi:10.3368/jhr.50.2.317 · Cited by 5,037
Bootstrap-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
Data Resource Profile: The Survey of Health, Ageing and Retirement in Europe (SHARE)
Börsch-Supan, A., Brandt, M., Hunkler, C., Kneip, T., Korbmacher, J., Malter, F., Schaan, B., Stuck, S., & Zuber, S. (2013) · International Journal of Epidemiology · doi:10.1093/ije/dyt088 · Cited by 2,377
Inference with Difference-in-Differences and Other Panel Data
Donald, S. G., & Lang, K. (2007) · Review of Economics and Statistics · doi:10.1162/rest.89.2.221 · Cited by 1,324
Methods for Evaluating Changes in Health Care Policy: The Difference-in-Differences Approach
Dimick, J. B., & Ryan, A. M. (2014) · JAMA · doi:10.1001/jama.2014.16153 · Cited by 1,193 · cited 5×
“The AR(1) process allows data to be serially correlated across time within groups, as in the way country-specific economic or health conditions evolve progressively over time.”
BackgroundMethodInfluentialCluster-Sample Methods in Applied Econometrics
Wooldridge, J. M. (2003) · American Economic Review · doi:10.1257/000282803321946930 · Cited by 867
Cited by
Nothing to See Here? A Non‐Inferiority Approach to Parallel Trends
Bilinski, A., & Hatfield, L. A. (2026) · Statistics in Medicine · doi:10.1002/sim.70296 · Cited by 102
Effects of Risk-Based Firearm Seizure Laws in Connecticut and Indiana on Suicide Rates, 1981–2015
Kivisto, A. J., & Phalen, P. L. (2018) · Psychiatric Services · doi:10.1176/appi.ps.201700250 · Cited by 151
“Finally, because difference-in-differences tests with a small number of treated clusters can underestimate standard errors (24), follow-up analyses employed randomization inference to account for within-group correlation of model errors (24,25).”
BackgroundRaifman, J., Moscoe, E., Austin, S. B., Hatzenbuehler, M. L., & Galea, S. (2018) · JAMA Psychiatry · doi:10.1001/jamapsychiatry.2018.0757 · Cited by 99
“Difference-in-difference analyseswith a small number of groups can produce standard errors that are too low, making confidence intervals overly narrow.(37)We therefore estimated thePvaluewithpermutation tests using the 3-state groups included in the main analysis, as well as selecting 1 additional 3-stategroup fromamo…”
Nothing to See Here? A non-inferiority approach to parallel trends
Bilinski, A., & Hatfield, L. A. (2018) · arXiv · doi:10.48550/arxiv.1805.03273 · Cited by 104
Rokicki, S., & Fink, G. (2017) · BMC Public Health · doi:10.1186/s12889-017-4939-7 · Cited by 80
“We adjusted all models for blocking variables, which were category of school (higher quality public, lower quality public, and private) and an indicator for the presence of home economics class) and we clustered standard errors at the school level to correct for within-school correlation of outcomes [28, 29].”
MethodSelf-citationKostova, D., Cassell, C. H., Redd, J. T., Williams, D. E., Singh, T., Martel, L. D., & Bunnell, R. E. (2019) · Health Economics · doi:10.1002/hec.3938 · Cited by 51
Alidina, S., Menon, G., Staffa, S. J., Alreja, S. S., Barash, D. M., Barringer, E., Cainer, M., Citron, I., DiMeo, A., Ernest, E., et al. (2021) · International Journal for Quality in Health Care · doi:10.1093/intqhc/mzab087 · Cited by 43
“determining intervention effects on patient outcomes using Generalized Estimating Equations (GEE) with a normal link function and exchangeable correlation structure while adjusting for potential confounders and baseline covariates [23].”
MethodMedicaid Expansion Slowed Rates Of Health Decline For Low-Income Adults In Southern States
Graves, J. A., Hatfield, L. A., Blot, W. J., Keating, N. L., & McWilliams, J. M. (2020) · Health Affairs · doi:10.1377/hlthaff.2019.00929 · Cited by 42
Maternal depression and economic well-being: A quasi-experimental approach
McGovern, M. E., Rokicki, S., & Reichman, N. E. (2022) · Social Science & Medicine · doi:10.1016/j.socscimed.2022.115017 · Cited by 44
Self-citationRaifman, J., Larson, E., Barry, C. L., Siegel, M., Ulrich, M., Knopov, A., & Galea, S. (2020) · BMJ · doi:10.1136/bmj.m2436 · Cited by 37
Okubo, Y., Nishi, A., Michels, K. B., Nariai, H., Kim-Farley, R. J., Arah, O. A., Uda, K., Kinoshita, N., & Miyairi, I. (2022) · International Journal of Epidemiology · doi:10.1093/ije/dyac057 · Cited by 38
Walsh, B., Nolan, A., Brick, A., & Keegan, C. (2018) · Social Science & Medicine · doi:10.1016/j.socscimed.2018.12.029 · Cited by 35
Standard Errors for Difference‐in‐Difference Regression
Hansen, B. E. (2025) · Journal of Applied Econometrics · doi:10.1002/jae.3110 · Cited by 38
Varga, A. N., Morel, A. E. G., Lokkerbol, J., van Dongen, J. M., van Tulder, M. W., & Bosmans, J. E. (2022) · Statistics in Medicine · doi:10.1002/sim.9628 · Cited by 33
Medicaid Expansion’s Spillover to the Criminal Justice System: Evidence from Six Urban Counties
Fry, C. E., McGuire, T. G., & Frank, R. G. (2020) · RSF The Russell Sage Foundation Journal of the Social Sciences · doi:10.7758/rsf.2020.6.2.11 · Cited by 31
Eliason, E. L., Daw, J. R., & ALLEN, H. L. (2021) · JAMA Network Open · doi:10.1001/jamanetworkopen.2021.37383 · Cited by 25
Trends in Hospital Utilization After Medicaid Expansion
Admon, A. J., Valley, T. S., Ayanian, J. Z., Iwashyna, T. J., Cooke, C. R., & Tipirneni, R. (2019) · Medical Care · doi:10.1097/mlr.0000000000001082 · Cited by 25
Wang, C., Li, X., Zhang, L., Wu, L.-M., Tan, L., Yuan, F., Guo, Y., Williams, S., & Xu, T. (2020) · International Breastfeeding Journal · doi:10.1186/s13006-020-00343-3 · Cited by 23
Rehring, S. M. A., Steiner, J. F., Reifler, L. M., Glenn, K. A., & Daley, M. F. (2021) · Journal of Continuing Education in the Health Professions · doi:10.1097/ceh.0000000000000340 · Cited by 24
Effect of a Seasonal Fishery Closure on Sardine and Mackerel Catch in the Visayan Sea, Philippines
Bagsit, F. U., Frimpong, E., Asch, R. G., & Monteclaro, H. M. (2021) · Frontiers in Marine Science · doi:10.3389/fmars.2021.640772 · Cited by 25
“The GEE was also robust to the misspecification of the correlation structure (Rokicki et al., 2018).”
MethodRacial and Socioeconomic Disparities in Preconception Health Risk Factors and Access to Care
Rokicki, S., & McConnell, M. A. (2024) · Journal of Women s Health · doi:10.1089/jwh.2023.0560 · Cited by 18
“52 We tested for a socioeconomic linear trend by including FPL level in the regression linearly and tested for a difference in slopes for Black versus White respondents using a chi-squared test.”
Self-citationPopulation Mortality and Laws Encouraging Influenza Vaccination for Hospital Workers
Carrera, M., Lawler, E. C., & White, C. (2021) · Annals of Internal Medicine · doi:10.7326/m20-0413 · Cited by 17
“We report 95%CIs based on SEs clustered at the state level to account for correlation within states over time, and we also report P values obtained from a nonparametric bootstrap procedure (section 4 of the Supplement) (24, 25).”
MethodDifference-in-Differences for Health Policy and Practice: A Review of Modern Methods
Feng, S., Ganguli, I., Lee, Y., Poe, J., Ryan, A., & Bilinski, A. (2025) · Statistics in Medicine · doi:10.1002/sim.70247 · Cited by 16
“For example, Assumption 4 requires parallel trends over all time periods and adoption cohorts [35], where adoption cohorts are defined as the set of units that initiated treatment at the same calendar time.”
Impact of social accountability monitoring on health facility performance: Evidence from Tanzania
Francetic, I. N. ;., Fink, G., & Tediosi, F. (2021) · Health Economics · doi:10.1002/hec.4219 · Cited by 16
“…inference tests based on the permutation‐based wild clustered bootstrap (Cameron, Gelbach, & Miller, 2008) with a 6‐point weight distribution (Rokicki, Cohen, Fink, Salomon, & Beth Landrum, 2018; Webb, 2013) and the sub‐cluster wild bootstrapping approach recommended by (MacKinnon & Webb,…”
MethodSelf-citationRokicki, S. (2021) · World Development · doi:10.1016/j.worlddev.2021.105484 · Cited by 18
Self-citationRokicki, S., Reichman, N. E., & McGovern, M. E. (2023) · JAMA Network Open · doi:10.1001/jamanetworkopen.2023.24018 · Cited by 13
Self-citationThe Effect Of The Affordable Care Act On Cancer Detection Among The Near-Elderly
Duarte, F., Kadiyala, S., Kominski, G. F., & Riveros, A. (2021) · Health Affairs · doi:10.1377/hlthaff.2020.00369 · Cited by 13
Chang, W., Cohen, J. L., Mwesigwa, B., Waiswa, P., & Rokicki, S. (2022) · Human Resources for Health · doi:10.1186/s12960-022-00722-3 · Cited by 13
“To assess the robustness of the models, we used alternative model specifications including non-linear models (logistic for binary outcomes and Poisson for count outcomes), facility random effects, inclusion of health worker control variables in regression models, and adjustment of standard errors using the wild cluste…”
MethodSelf-citationRokicki, S., Mwesigwa, B., Waiswa, P., & Cohen, J. (2021) · Global Health Science and Practice · doi:10.9745/ghsp-d-21-00205 · Cited by 13
Self-citationESRI, Walsh, B., Wren, M., ESRI, Smith, S., ESRI, Lyons, S., ESRI, Eighan, J., ESRI, et al. (2019) · doi:10.26504/rs91.pdf · Cited by 15
An evaluation of the Be Your Own Baby public awareness campaign
Marthey, D., Rashid, H., Xie, L., & Boudreaux, M. H. (2021) · Health Services Research · doi:10.1111/1475-6773.13698 · Cited by 12
Cerdá, M., Allen, B. L., Collins, A. B., Behrends, C. N., Santacatterina, M., Jent, V. A., & Marshall, B. D. L. (2025) · Harm Reduction Journal · doi:10.1186/s12954-025-01211-1 · Cited by 9
“[76, 77] As previously mentioned, we will use standard sandwich estimators without correction for clustering.”
Yoder, M., & Boudreaux, M. H. (2023) · PLoS ONE · doi:10.1371/journal.pone.0280588 · Cited by 11
“While we considered clustering at the state level which is common in the difference-in-differences literature, in our setting state-level clustering is not appropriate because there is only a single treated cluster and standard methods for estimating standard errors will substantially understate sampling variance [26,…”
BackgroundMedicaid healthy behavior incentives and use of dental services
Elani, H. W., Kawachi, I. I., & Sommers, B. D. (2021) · Health Services Research · doi:10.1111/1475-6773.13672 · Cited by 7
The Effect of Changes in Alcohol Tax Differentials on Alcohol ConsumptionPreprint
Gehrsitz, M., Saffer, H., & Grossman, M. B. (2020) · SSRN Electronic Journal · doi:10.2139/ssrn.3587926 · Cited by 7
Estimating Intervention Effects With Difference-in-Differences
Bilinski, A., Feng, S., & Hatfield, L. A. (2026) · JAMA · doi:10.1001/jama.2026.12551 · Cited by 6
Do the Effects of Alcohol Excise Taxes Differ by Drinking Level and by Income Level?
Saffer, H., Gehrsitz, M., & Grossman, M. B. (2024) · National Tax Journal · doi:10.1086/732146 · Cited by 4
A deep causal inference model for interpretable travel behaviour analysis
Kamal, K., & Farooq, B. (2026) · Transportation Research Part C Emerging Technologies · doi:10.1016/j.trc.2026.106120 · Cited by 3
Postpartum long‐acting reversible contraceptive adoption after a statewide initiative
Gifford, K., McColl, R., McDuffie, M. J., & Boudreaux, M. H. (2024) · Health Services Research · doi:10.1111/1475-6773.14300 · Cited by 3
Hanchate, A. D., Strackman, B. W., Lin, M., Paasche‐Orlow, M. K., Lasser, K. E., & Cole, M. B. (2023) · Health Services Research · doi:10.1111/1475-6773.14171 · Cited by 2
Time on Your Side: Aggregating Data in Difference‐In‐Differences Studies
Rak, S., Hatfield, L. A., & Fry, C. E. (2025) · Health Services Research · doi:10.1111/1475-6773.14636 · Cited by 1
Minimum Wage Policies and Obstetric Disorders in the U.S.
McGovern, M. E., Rokicki, S., Ahn, H., & Reichman, N. E. (2025) · American Journal of Preventive Medicine · doi:10.1016/j.amepre.2025.108156 · Cited by 1
“43 Analysis was performed in January–July 2025 using Stata 18.”
Self-citationPang, B., Liu, X., & Xiao, L. (2025) · Journal of Policy Research in Tourism Leisure and Events · doi:10.1080/19407963.2025.2579557 · Cited by 1
Rokicki, S., Fink, E.-E. D., & Blumenfeld, J. (2026) · Journal of Affective Disorders · doi:10.1016/j.jad.2026.122155 · Cited by 2
Self-citationMitrović, D., Erceg, P., Milic, L., Cuk, V. V., Juloski, J. T., Radulovic, R., Konstantinović, L. M., Radojicic, Z. A., Jovanovic, V., & Dugonjić, S. (2022) · Srpski arhiv za celokupno lekarstvo · doi:10.2298/sarh200713005m · Cited by 1
Fry, C. (2020) · Digital Access to Scholarship at Harvard (DASH) (Harvard University)
Wang, X., & Wang, S. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2108.13311
“[7], the approaches used to account for within-group correlation in outcomes can be divided into three broad categories: (1) post hoc adjustments such as CSE (Clustered Standard Errors) [12], bootstrapping [13–15], or permutation tests [16–20]; (2) explicitly modeling the within-cluster error correlation [21–24] such…”
BackgroundMethodInfluentialSebastian, P. (2023) · University of North Texas Digital Library (University of North Texas) · doi:10.12794/metadc2179340
Regression Approaches to Assess Effect of Treatments That Arrest Progression of Symptoms
Ortega‐Villa, A. M., Nason, M., Fay, M. P., Alehashemi, S., Goldbach‐Mansky, R. T., & Follmann, D. A. (2024) · Statistics in Medicine · doi:10.1002/sim.10219
Leavitt, T., & Hatfield, L. A. (2025) · The Annals of Applied Statistics · doi:10.1214/25-aoas2011 · Cited by 3
Grünewald, F., & Stargardt, T. (2025) · The European Journal of Health Economics · doi:10.1007/s10198-025-01863-7
“This model is preferred in the case of only one treated cluster because of the low power of wild bootstrapping under such conditions [56].”
Sterling, R. A., Rinne, S. T., Moldestad, M., Helfrich, C. D., Sayre, G., Keithly, S. C., Sulc, C. A., Young, J. P., Obara, E. E., Shirley, S., et al. (2025) · Health Services Research · doi:10.1111/1475-6773.70074
Rokicki, S., Ahn, H., Han, H., Duberstein, P. R., Reichman, N. E., & McGovern, M. E. (2026) · BMJ Public Health · doi:10.1136/bmjph-2025-003755
“44 We then used results from these models to estimate linear predicted values of smoking prevalence at the value of the current federal minimum wage (US$7.25) and the maximum state minimum wage observed in our sample (US$14), and tested the difference using contrasts of marginal linear predictions.”
InfluentialSelf-citationSebastian, P., Zhang, Y., & Hull, D. M. (2026) · Studies In Educational Evaluation · doi:10.1016/j.stueduc.2026.101594
Metadata
- Authors
- Rokicki, S., Cohen, J., Fink, G., Salomon, J. A., & Landrum, M. B.
- Affiliations
- University College Dublin (IE)
- Harvard University (US)
- Swiss Tropical and Public Health Institute (CH)
- Corresponding author
- Rokicki, Slawa
- Venue
- Medical Care
- Published
- 2018-01
- Volume
- 56
- Issue
- 1
- Pages
- 97-105
- ISSN
- 0025-7079 (ISSN-L)
- OpenAlex
- W2767784255
- Cited by
- 53
- References
- 37
- Citations by year
- 2026: 5 · 2025: 9 · 2024: 4 · 2023: 4 · 2022: 5 · 2021: 13 · 2020: 6 · 2019: 3 · 2018: 3
- FWCI
- 0.65
- Type
- journal article
- Language
- en
- Open access
- green
- edoc.unibas.ch
- Licence
- other-oa
- Locations
- Medical Care (publishedVersion)
- PubMed (publishedVersion)
- edoc (University of Basel) (acceptedVersion, other-oa)
- Zenodo (CERN European Organization for Nuclear Research) (submittedVersion, other-oa)
- Funders
- European Commission (261982, IAG BSR06-11, QLK6‐CT‐2001‐ 00360, RII-CT- 2006-062193, P01_AG08291, SHARE-I3: RII-CT-2006-062193, SHARE M4, SHARE-I3, U01 AG09740-13S2, P30 AG12815, CIT5-CT-2005- 028857, P01 AG005842, 211909, OGHA 04-064, CIT4-CT-2006-028812, Y1-AG-4553-01, FP6 (SHARE-I3: RII-CT-2006-062193, 227822, HHSN271201300071C, SHARELIFE: CIT4-CT-2006–028812)
- Max-Planck-Gesellschaft (Y1-AG-4553-01, P30_AG12815, P01_AG08291, P01_AG005842, 227822, CIT4-CT-2006-028812, HHSN271201300071C, OGHA_04-064, 261982, IAG_BSR06-11, CIT5-CT-2005-028857, RII-CT-2006-062193, 211909, QLK6-CT-2001-00360, U01_AG09740-13S2)
- National Institutes of Health (2p30ag012815-16)
- National Institute on Aging (HHSN271201300071C, R21AG025169, P01AG005842, U01AG009740)
- Topics
- Physical Sciences › Mathematics › Statistics and Probability › Advanced Causal Inference Techniques
- Physical Sciences › Mathematics › Statistics and Probability › Statistical Methods and Bayesian Inference
- Social Sciences › Economics, Econometrics and Finance › Economics and Econometrics › Spatial and Panel Data Analysis
- Keywords
- difference-in-differences, clustered standard errors, within-group correlation, generalized estimating equations, permutation tests, wild cluster bootstrap, aggregation, statistical power, panel data, health policy evaluation
- MeSH terms
- Computer Simulation, Europe, Humans, Monte Carlo Method, Statistics as Topic, Models, Statistical, Bias, Cluster Analysis, Patient Outcome Assessment
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.