Difference-in-Differences

The Story of the Economists’ Workhorse

What it is · every major version · the Stata command for each · the papers behind them · 13 animated guides

Compiled by Rentian Zhu · Source on GitHub

Watch the animated guides

1. What is difference-in-differences?

Compare the change over time in a treated group with the change over time in an untreated group. The second difference removes whatever both groups share.

In the canonical 2×2 design there are two groups (treated, control) and two periods (before, after). The estimator is

δDiD = ( Ȳtreated, post − Ȳtreated, pre ) − ( Ȳcontrol, post − Ȳcontrol, pre )

which is numerically the coefficient on the interaction in

Yit = α + β·Treati + γ·Postt + δ·(Treati × Postt) + εit

and identifies the average treatment effect on the treated (ATT) under three assumptions:

Parallel trends

Absent treatment, the treated group’s average outcome would have moved in parallel with the control group’s. Untestable for the post period; pre-trends are only suggestive evidence.

No anticipation

Units do not respond to the treatment before it starts, so pre-period outcomes are untreated potential outcomes.

SUTVA / no spillovers

One unit’s treatment does not change another unit’s outcome, and the composition of the groups is stable.

With many units and periods, the 2×2 regression generalises to two-way fixed effects (TWFE) and its dynamic sibling, the event study:

Yit = αi + λt + δ·Dit + εitstatic TWFE
Yit = αi + λt + Σk≠−1 βk·1{t − Gi = k} + εitevent study, Gi = first treated period

2. Animated guides

Thirteen short animations, one for each idea, built on simulated data. In the TWFE and Sun & Abraham scenes the estimates come from actual regressions on the simulated panels, so the bias you see there is real.

Prefer a file? Each animation has an MP4 link under the player, or download all 13 as one video (about 9 minutes).

3. The story

From a London water pump to the “credibility revolution” and the post-2018 rewrite of the textbook.

4. Why the textbook estimator broke

When units adopt treatment at different dates, the static TWFE coefficient is a weighted average of every possible 2×2 comparison in the data (Goodman-Bacon 2021). Some of those comparisons use already-treated units as controls. If treatment effects grow or differ across cohorts, those “forbidden comparisons” subtract earlier effects from later ones; the weights can be negative, and the TWFE estimate can even have the opposite sign to every underlying effect (de Chaisemartin & D’Haultfœuille 2020). Event-study leads and lags are contaminated in the same way (Sun & Abraham 2021), so flat pre-trends from a TWFE event study are not reliable evidence.

TWFE is still fine when there is a single treatment date, or when effects are homogeneous across cohorts and time. Otherwise, use one of the heterogeneity-robust estimators below. They all share one idea: only compare treated units to not-yet-treated or never-treated units, then aggregate with sensible weights.

5. The versions

Grouped by the problem each one solves. Commands marked built-in ship with Stata 17+; the rest are community-contributed.

A. Classic designs

built-in2×2

Canonical DiD

Two groups, two periods, or a single treatment date.

didregress (y x) (D), group(state) time(year)
xtdidregress (y x) (D), group(state) time(year)
estat ptrends
estat trendplots
estat granger

Card & Krueger (1994); Angrist & Pischke (2009)

Watch the animation
reghdfeTWFE

Two-way fixed effects & event study

The traditional workhorse. Safe with one treatment date or homogeneous effects.

reghdfe y D, absorb(id year) vce(cluster id)
* event study, t = -1 omitted
reghdfe y lead5-lead2 lag0-lag5, ///
    absorb(id year) vce(cluster id)

Correia (2017); Miller (2023); plotting: eventdd (Clarke & Tapia-Schythe 2021), xtevent (Freyaldenhoven et al. 2019)

Watch the animation
built-inDDD

Triple differences

Adds a within-group unaffected subgroup to difference out group-specific shocks. Needs only that the gap in trends is parallel.

didregress (y) (D), group(state agegrp) time(year)
* or by hand
reghdfe y D, absorb(state#year state#agegrp ///
    agegrp#year) vce(cluster state)

Gruber (1994); Olden & Møen (2022); Ortiz-Villavicencio & Sant’Anna (2025)

Watch the animation
drdidcovariates

Conditional parallel trends

Parallel trends holds only after conditioning on covariates. Outcome regression, inverse-probability weighting, or doubly robust combinations.

drdid y x1 x2, ivar(id) time(year) tr(treat) all

Heckman, Ichimura & Todd (1997); Abadie (2005); Sant’Anna & Zhao (2020)

Watch the animation

B. Diagnosing TWFE

bacondecomp

Goodman-Bacon decomposition

Splits the TWFE coefficient into all 2×2 comparisons and their weights; shows how much comes from “later vs. already treated”.

xtset id year
bacondecomp y D, ddetail

Goodman-Bacon (2021)

Watch the animation
twowayfeweights

Negative-weights check

Counts how many ATTs receive negative weight in the TWFE regression and how sensitive the estimate is to heterogeneity.

twowayfeweights y id year D, type(feTR)

de Chaisemartin & D’Haultfœuille (2020)

Watch the animation

C. Staggered adoption: heterogeneity-robust estimators

csdidbuilt-in: xthdidregress

Callaway & Sant’Anna

Estimates group-time ATT(g,t) for each cohort and period against never- or not-yet-treated units, then aggregates. Handles covariates (doubly robust).

* gvar = first treated year, 0 if never treated
csdid y x, ivar(id) time(year) gvar(g) method(dripw)
estat simple
estat event
csdid_plot
* Stata 18+
xthdidregress aipw (y x) (D), group(id)
estat aggregation, dynamic graph

Callaway & Sant’Anna (2021)

Watch the animation
eventstudyinteract

Sun & Abraham

Interaction-weighted event study: cohort-specific leads and lags, averaged with cohort-share weights. Closest to the familiar regression.

eventstudyinteract y lead* lag*, ///
    cohort(g) control_cohort(never) ///
    absorb(i.id i.year) vce(cluster id)

Sun & Abraham (2021)

Watch the animation
did_imputation

Imputation estimator

Fit unit and time effects on untreated observations only, impute Y(0) for treated ones, average the differences. Efficient under homoskedasticity.

* Ei = first treated year, missing if never
did_imputation y id year Ei, ///
    horizons(0/5) pretrends(4) autosample
event_plot, default_look

Borusyak, Jaravel & Spiess (2024)

Watch the animation
did2s

Two-stage DiD

Same imputation idea in two regressions: residualise on fixed effects from untreated observations, then regress on treatment. GMM standard errors.

did2s y, first_stage(i.id i.year) ///
    second_stage(i.D) treatment(D) cluster(id)

Gardner (2021); Butts & Gardner (2022)

Watch the animation
jwdid

Extended TWFE

Wooldridge’s point: TWFE is not the problem, the restrictive specification is. Saturate with cohort × time interactions; extends naturally to logit and Poisson.

jwdid y, ivar(id) tvar(year) gvar(g)
estat simple
estat event
* nonlinear
jwdid y, ivar(id) tvar(year) gvar(g) method(poisson)

Wooldridge (2021, 2023)

Watch the animation
stackedev

Stacked DiD

Build a clean 2×2 dataset for each adoption event (treated cohort plus clean controls), stack them, and run one regression with stack-specific fixed effects.

stackedev y lead* lag*, cohort(g) time(year) ///
    never_treat(never) unit_fe(id) clust_unit(id)

Cengiz, Dube, Lindner & Zipperer (2019); Wing, Freedman & Hollingsworth (2024)

Watch the animation
lpdid

Local-projections DiD

Horizon-by-horizon long-difference regressions restricted to newly treated and clean control observations. Fast, flexible with covariates and non-absorbing treatment.

lpdid y, unit(id) time(year) treat(D) pre(5) post(10)

Dube, Girardi, Jordà & Taylor (2023)

staggered

Efficient estimator under random timing

If treatment timing is (quasi-)random, pre-period outcomes can be used like covariates in an experiment for a more precise estimate.

staggered y, i(id) t(year) g(g) estimand(simple)

Roth & Sant’Anna (2023b); Athey & Imbens (2022)

D. Treatments that are not binary and absorbing

did_multiplegt_dyn

Switching on and off, any intensity

Compares “switchers” to units with the same baseline treatment that have not switched yet. Works with binary, discrete or continuous, non-absorbing treatments.

did_multiplegt_dyn y id year D, ///
    effects(5) placebo(3) cluster(id)

de Chaisemartin & D’Haultfœuille (2020, 2024)

Watch the animation
did_haddose

Continuous treatment / dose

With a continuous dose, parallel trends alone does not identify a dose-response curve; a stronger assumption is needed. did_had covers designs where everyone gets some dose.

did_had y id year D, effects(3) placebo(2)

Callaway, Goodman-Bacon & Sant’Anna (2024); de Chaisemartin et al. (2024)

Watch the animation
fuzzydid

Fuzzy DiD

Treatment rate rises more in one group than the other, but no group is fully treated or untreated. Wald-DiD, time-corrected Wald, and changes-in-changes Wald.

fuzzydid y G T D, did tc cic

de Chaisemartin & D’Haultfœuille (2018)

cicdistributional

Changes-in-changes

Nonlinear generalisation: identifies the whole counterfactual distribution (quantile effects), invariant to monotone transformations of the outcome.

cic continuous y treat post, at(10(10)90)

Athey & Imbens (2006); Roth & Sant’Anna (2023a)

Watch the animation

E. When parallel trends is doubtful

honestdid

Honest DiD (sensitivity)

Reports confidence sets that stay valid if the post-period violation of parallel trends is at most M times the largest pre-period violation, or bounded in smoothness.

* after an event-study regression
honestdid, pre(1/5) post(6/10) mvec(0(0.5)2)

Rambachan & Roth (2023)

Watch the animation
pretrends

Power of pre-trend tests

Pre-tests have low power and conditioning on passing them distorts inference. Computes the trend your pre-test would detect with given power.

pretrends power 0.5, pre(1/5) post(6/10)

Roth (2022)

Watch the animation
sdidsynth

Synthetic control & synthetic DiD

Re-weight control units (and, in SDID, pre-periods) so the comparison group matches the treated group’s pre-trend, then difference.

sdid y id year D, vce(bootstrap) graph
synth y y(2000) y(2005) x1, trunit(3) trperiod(2006)

Abadie, Diamond & Hainmueller (2010); Arkhangelsky et al. (2021); Clarke et al. (2024)

Watch the animation
fect

Factor models / matrix completion

Replace additive unit and time effects with interactive fixed effects (latent factors) to allow unit-specific responses to common shocks.

fect y, treat(D) unit(id) time(year) ///
    method("ife") r(2) se

Xu (2017); Athey et al. (2021); Liu, Wang & Xu (2024)

F. Inference

vce(cluster)

Cluster at the level of treatment

Outcomes are serially correlated within units, so cluster by the unit at which treatment is assigned (state, firm), not unit-year.

Bertrand, Duflo & Mullainathan (2004); Abadie et al. (2023)

boottest

Few clusters

With fewer than roughly 40 clusters, or very few treated clusters, use the wild cluster bootstrap or randomisation inference.

reghdfe y D, absorb(id year) vce(cluster state)
boottest D, cluster(state) reps(9999)

Cameron, Gelbach & Miller (2008); Conley & Taber (2011); Roodman et al. (2019)

6. Stata cheat sheet

One row per command. A runnable simulation that calls most of them is in did_examples.do.

CommandMethodUse it whenInstallPaper
didregress / xtdidregress2×2, TWFE, DDDSingle treatment dateStata 17+—
hdidregress / xthdidregressGroup-time ATTs (RA, IPW, AIPW, TWFE)Staggered, official commandStata 18+Callaway & Sant’Anna (2021); Wooldridge (2021)
reghdfeTWFE with many fixed effectsBaseline and custom specificationsssc install reghdfeCorreia (2017)
diff2×2 with kernel matching, quantile DiDQuick classic DiDssc install diffVilla (2016)
drdidDoubly robust 2×2Covariate-conditional parallel trendsssc install drdidSant’Anna & Zhao (2020)
bacondecompTWFE decompositionDiagnose staggered TWFEssc install bacondecompGoodman-Bacon (2021)
twowayfeweightsTWFE weightsCheck for negative weightsssc install twowayfeweightsde Chaisemartin & D’Haultfœuille (2020)
csdidGroup-time ATTStaggered, covariates, never/not-yet controlsssc install csdidCallaway & Sant’Anna (2021)
eventstudyinteractInteraction-weighted event studyStaggered, regression-stylessc install eventstudyinteractSun & Abraham (2021)
did_imputationImputationStaggered, efficiency, long panelsssc install did_imputationBorusyak, Jaravel & Spiess (2024)
did2sTwo-stage DiDStaggered, simple to explainssc install did2sGardner (2021)
jwdidExtended TWFEStaggered, nonlinear outcomesssc install jwdidWooldridge (2021, 2023)
stackedevStacked event studyStaggered with clean-control windowsssc install stackedevCengiz et al. (2019)
lpdidLocal-projections DiDStaggered, large data, non-absorbingssc install lpdidDube et al. (2023)
staggeredEfficient estimatorRandom treatment timingGitHub: mcaceresb/stata-staggeredRoth & Sant’Anna (2023b)
did_multiplegt_dynSwitchers vs. not-yet-switchersNon-binary or reversible treatmentssc install did_multiplegt_dynde Chaisemartin & D’Haultfœuille (2024)
did_hadHeterogeneous adoption designEveryone treated, varying dosessc install did_hadde Chaisemartin et al. (2024)
fuzzydidWald-DiD, Wald-TC, Wald-CiCFuzzy designsssc install fuzzydidde Chaisemartin & D’Haultfœuille (2018)
cicChanges-in-changesDistributional effectsssc install cicAthey & Imbens (2006)
eventdd, xtevent, event_plotEvent-study estimation and plotsPlotting, combining estimatorsssc install eachClarke & Tapia-Schythe (2021); Freyaldenhoven et al. (2019)
honestdidSensitivity to parallel-trends violationsAfter any event studyssc install honestdidRambachan & Roth (2023)
pretrendsPower of pre-trend testsInterpreting flat pre-trendsGitHub: mcaceresb/stata-pretrendsRoth (2022)
sdid, sdid_eventSynthetic DiDFew treated units, poor pre-trend fitssc install sdidArkhangelsky et al. (2021)
synth, synth_runnerSynthetic controlOne or few treated unitsssc install synthAbadie et al. (2010)
fectInteractive FE, matrix completionLatent factors, treatment reversalsGitHub: xuyiqing/fect_stataLiu, Wang & Xu (2024)
boottestWild cluster bootstrapFew clustersssc install boottestRoodman et al. (2019)
Option names in community-contributed packages change between versions. Check help <command> after installing; coding of never-treated units in particular differs (0 for csdid and jwdid, missing for did_imputation and eventstudyinteract).

7. A practical workflow

  1. Describe the design. One treatment date or staggered? Absorbing or reversible? Binary or continuous? Are there never-treated units? Plot the rollout (panelview).
  2. Plot raw means by cohort over time before running any regression.
  3. Single date: didregress or reghdfe with an event study is fine.
  4. Staggered: run TWFE as a baseline, diagnose it with bacondecomp / twowayfeweights, then report at least one robust estimator (csdid, did_imputation, eventstudyinteract, jwdid, lpdid). They usually agree; if they do not, find out which comparison drives the gap.
  5. Choose the control group deliberately: never-treated versus not-yet-treated changes the parallel-trends assumption you are making.
  6. Assess parallel trends honestly: show the event study, report honestdid bounds and pretrends power instead of relying on an insignificant pre-test.
  7. Cluster at the level of treatment assignment; use boottest with few clusters.

8. References

Surveys and textbooks (start here)

  1. Roth, J., Sant’Anna, P. H. C., Bilinski, A., & Poe, J. (2023). What’s trending in difference-in-differences? A synthesis of the recent econometrics literature. Journal of Econometrics, 235(2), 2218–2244.
  2. de Chaisemartin, C., & D’Haultfœuille, X. (2023). Two-way fixed effects and differences-in-differences with heterogeneous treatment effects: A survey. Econometrics Journal, 26(3), C1–C30.
  3. Baker, A., Callaway, B., Cunningham, S., Goodman-Bacon, A., & Sant’Anna, P. H. C. (2025). Difference-in-differences designs: A practitioner’s guide. Working paper, arXiv:2503.13323.
  4. Baker, A. C., Larcker, D. F., & Wang, C. C. Y. (2022). How much should we trust staggered difference-in-differences estimates? Journal of Financial Economics, 144(2), 370–395.
  5. Miller, D. L. (2023). An introductory guide to event study models. Journal of Economic Perspectives, 37(2), 203–230.
  6. Lechner, M. (2011). The estimation of causal effects by difference-in-difference methods. Foundations and Trends in Econometrics, 4(3), 165–224.
  7. Angrist, J. D., & Pischke, J.-S. (2009). Mostly Harmless Econometrics. Princeton University Press.
  8. Cunningham, S. (2021). Causal Inference: The Mixtape. Yale University Press.
  9. Huntington-Klein, N. (2021). The Effect: An Introduction to Research Design and Causality. Chapman & Hall/CRC.

Origins and classics

  1. Snow, J. (1855). On the Mode of Communication of Cholera (2nd ed.). John Churchill.
  2. Obenauer, M. L., & von der Nienburg, B. (1915). Effect of Minimum-Wage Determinations in Oregon. Bulletin of the U.S. Bureau of Labor Statistics, No. 176.
  3. Ashenfelter, O. (1978). Estimating the effect of training programs on earnings. Review of Economics and Statistics, 60(1), 47–57.
  4. Ashenfelter, O., & Card, D. (1985). Using the longitudinal structure of earnings to estimate the effect of training programs. Review of Economics and Statistics, 67(4), 648–660.
  5. Card, D. (1990). The impact of the Mariel boatlift on the Miami labor market. ILR Review, 43(2), 245–257.
  6. Card, D., & Krueger, A. B. (1994). Minimum wages and employment: A case study of the fast-food industry in New Jersey and Pennsylvania. American Economic Review, 84(4), 772–793.
  7. Gruber, J. (1994). The incidence of mandated maternity benefits. American Economic Review, 84(3), 622–641.
  8. Meyer, B. D. (1995). Natural and quasi-experiments in economics. Journal of Business & Economic Statistics, 13(2), 151–161.
  9. Heckman, J. J., Ichimura, H., & Todd, P. E. (1997). Matching as an econometric evaluation estimator: Evidence from evaluating a job training programme. Review of Economic Studies, 64(4), 605–654.

Covariates, nonlinear and fuzzy designs

  1. Abadie, A. (2005). Semiparametric difference-in-differences estimators. Review of Economic Studies, 72(1), 1–19.
  2. Athey, S., & Imbens, G. W. (2006). Identification and inference in nonlinear difference-in-differences models. Econometrica, 74(2), 431–497.
  3. Sant’Anna, P. H. C., & Zhao, J. (2020). Doubly robust difference-in-differences estimators. Journal of Econometrics, 219(1), 101–122.
  4. de Chaisemartin, C., & D’Haultfœuille, X. (2018). Fuzzy differences-in-differences. Review of Economic Studies, 85(2), 999–1028.
  5. Roth, J., & Sant’Anna, P. H. C. (2023a). When is parallel trends sensitive to functional form? Econometrica, 91(2), 737–747.
  6. Wooldridge, J. M. (2023). Simple approaches to nonlinear difference-in-differences with panel data. Econometrics Journal, 26(3), C31–C66.
  7. Olden, A., & Møen, J. (2022). The triple difference estimator. Econometrics Journal, 25(3), 531–553.
  8. Ortiz-Villavicencio, M., & Sant’Anna, P. H. C. (2025). Better understanding triple differences estimators. Working paper, arXiv:2505.09942.

Staggered adoption and heterogeneous effects

  1. Goodman-Bacon, A. (2021). Difference-in-differences with variation in treatment timing. Journal of Econometrics, 225(2), 254–277.
  2. de Chaisemartin, C., & D’Haultfœuille, X. (2020). Two-way fixed effects estimators with heterogeneous treatment effects. American Economic Review, 110(9), 2964–2996.
  3. Callaway, B., & Sant’Anna, P. H. C. (2021). Difference-in-differences with multiple time periods. Journal of Econometrics, 225(2), 200–230.
  4. Sun, L., & Abraham, S. (2021). Estimating dynamic treatment effects in event studies with heterogeneous treatment effects. Journal of Econometrics, 225(2), 175–199.
  5. Borusyak, K., Jaravel, X., & Spiess, J. (2024). Revisiting event-study designs: Robust and efficient estimation. Review of Economic Studies, 91(6), 3253–3285.
  6. Gardner, J. (2021). Two-stage differences in differences. Working paper, arXiv:2207.05943.
  7. Butts, K., & Gardner, J. (2022). did2s: Two-stage difference-in-differences. The R Journal, 14(3), 162–173.
  8. Wooldridge, J. M. (2021). Two-way fixed effects, the two-way Mundlak regression, and difference-in-differences estimators. Working paper, SSRN 3906345.
  9. Cengiz, D., Dube, A., Lindner, A., & Zipperer, B. (2019). The effect of minimum wages on low-wage jobs. Quarterly Journal of Economics, 134(3), 1405–1454.
  10. Wing, C., Freedman, S. M., & Hollingsworth, A. (2024). Stacked difference-in-differences. NBER Working Paper 32054.
  11. Dube, A., Girardi, D., Jordà, Ò., & Taylor, A. M. (2023). A local projections approach to difference-in-differences. NBER Working Paper 31184.
  12. Athey, S., & Imbens, G. W. (2022). Design-based analysis in difference-in-differences settings with staggered adoption. Journal of Econometrics, 226(1), 62–79.
  13. Roth, J., & Sant’Anna, P. H. C. (2023b). Efficient estimation for staggered rollout designs. Journal of Political Economy Microeconomics, 1(4), 669–709.
  14. de Chaisemartin, C., & D’Haultfœuille, X. (2024). Difference-in-differences estimators of intertemporal treatment effects. Review of Economics and Statistics, 1–45.
  15. Callaway, B., Goodman-Bacon, A., & Sant’Anna, P. H. C. (2024). Difference-in-differences with a continuous treatment. NBER Working Paper 32117.
  16. de Chaisemartin, C., Ciccia, D., D’Haultfœuille, X., & Knau, F. (2024). Two-way fixed effects and differences-in-differences estimators in heterogeneous adoption designs. Working paper, arXiv:2405.04465.

Pre-trends, sensitivity and synthetic methods

  1. Roth, J. (2022). Pretest with caution: Event-study estimates after testing for parallel trends. American Economic Review: Insights, 4(3), 305–322.
  2. Rambachan, A., & Roth, J. (2023). A more credible approach to parallel trends. Review of Economic Studies, 90(5), 2555–2591.
  3. Freyaldenhoven, S., Hansen, C., & Shapiro, J. M. (2019). Pre-event trends in the panel event-study design. American Economic Review, 109(9), 3307–3338.
  4. Abadie, A., Diamond, A., & Hainmueller, J. (2010). Synthetic control methods for comparative case studies: Estimating the effect of California’s tobacco control program. Journal of the American Statistical Association, 105(490), 493–505.
  5. Arkhangelsky, D., Athey, S., Hirshberg, D. A., Imbens, G. W., & Wager, S. (2021). Synthetic difference-in-differences. American Economic Review, 111(12), 4088–4118.
  6. Xu, Y. (2017). Generalized synthetic control method: Causal inference with interactive fixed effects models. Political Analysis, 25(1), 57–76.
  7. Athey, S., Bayati, M., Doudchenko, N., Imbens, G., & Khosravi, K. (2021). Matrix completion methods for causal panel data models. Journal of the American Statistical Association, 116(536), 1716–1730.
  8. Liu, L., Wang, Y., & Xu, Y. (2024). A practical guide to counterfactual estimators for causal inference with time-series cross-sectional data. American Journal of Political Science, 68(1), 160–176.

Inference

  1. Bertrand, M., Duflo, E., & Mullainathan, S. (2004). How much should we trust differences-in-differences estimates? Quarterly Journal of Economics, 119(1), 249–275.
  2. Cameron, A. C., Gelbach, J. B., & Miller, D. L. (2008). Bootstrap-based improvements for inference with clustered errors. Review of Economics and Statistics, 90(3), 414–427.
  3. Conley, T. G., & Taber, C. R. (2011). Inference with “difference in differences” with a small number of policy changes. Review of Economics and Statistics, 93(1), 113–125.
  4. Abadie, A., Athey, S., Imbens, G. W., & Wooldridge, J. M. (2023). When should you adjust standard errors for clustering? Quarterly Journal of Economics, 138(1), 1–35.

Stata software papers

  1. Correia, S. (2017). Linear models with high-dimensional fixed effects: An efficient and feasible estimator. Working paper (reghdfe).
  2. Villa, J. M. (2016). diff: Simplifying the estimation of difference-in-differences treatment effects. Stata Journal, 16(1), 52–71.
  3. Roodman, D., Nielsen, M. Ø., MacKinnon, J. G., & Webb, M. D. (2019). Fast and wild: Bootstrap inference in Stata using boottest. Stata Journal, 19(1), 4–60.
  4. Clarke, D., & Tapia-Schythe, K. (2021). Implementing the panel event study. Stata Journal, 21(4), 853–884.
  5. Clarke, D., Pailañir, D., Athey, S., & Imbens, G. (2024). On synthetic difference-in-differences and related estimation methods in Stata. Stata Journal, 24(4), 557–598.
  6. Rios-Avila, F., Sant’Anna, P. H. C., & Callaway, B. (2021). csdid: Difference-in-differences with multiple time periods in Stata. Stata Conference presentation and SSC package.