Callaway–Sant’Anna
Estimate effects by adoption cohort and calendar date using never-treated or not-yet-treated comparisons outside their anticipation window. Inspect overlap and cohort counts before aggregating.
Compare the change in spending for members vs. matched non-members from pre- to post-period.
The average treatment effect on the treated (ATT) is the average difference between the treated group’s outcome with treatment and its potential outcome without treatment. Here it is measured in dollars per member per month. Parallel trends means the groups would have experienced the same average dollar change without the program. The four-mean contrast identifies the ATT under parallel trends, no anticipation of the program, controls that stay unexposed, and member and control populations whose composition stays comparable over time.
Enter average monthly spend for members and matched controls before and after the join date. The default values come from the simulated cohort at the default Matching settings. An interval also requires information about sampling variation and dependence.
The same paired pretest and posttest observations can support different comparisons. Ask how units entered each group and which counterfactual mean the design makes credible. These examples are synthetic and use the same measurement scale before and after treatment.
With two periods, the difference in mean changes subtracts the baseline gap from the posttest gap. That imposes a slope of one in the regression calculation. Common-slope ANCOVA subtracts the fitted within-group slope times the baseline gap.
DiD needs parallel group-average untreated trends and no anticipation to identify the usual two-group ATT. Individual trajectories may differ. ANCOVA needs conditional exchangeability at baseline, overlap and a credible outcome model. If slopes differ, allow an interaction and standardize predictions to a named target population. Measurement noise, regression to the mean and weak overlap can all change the comparison.
Use the recorded-pretest example. To isolate the interval interpretation, fix the common slope at 0.60 and the individual residual standard deviation at 2. The adjusted group gap of 4 has a Gaussian likelihood with variance 2² × (1/8 + 1/8) = 1. A Normal(0, 5²) prior for the gap gives a posterior with mean 3.85 and a central 95% credible interval from 1.92 to 5.77 units.
For an independent replicate with the same design and eight units per arm, the posterior predictive 95% interval for the adjusted sample gap is 1.10 to 6.59 units. The observed gap of 4 is inside. In a fitted analysis, compare replicated and observed group spreads and trends as well.
A credible interval assigns probability to parameters under the likelihood and priors. A frequentist confidence procedure targets repeated-sample coverage under its assumptions. This conjugate example needs no sampler. For sampled posteriors, inspect R-hat, bulk and tail chain effective sample size, divergences, and predictive checks.
The calculator above uses the four group means. Estimating the within-group slope requires paired unit-level observations like these.
With two groups and two periods, subtract the control change from the treated change. In a balanced panel this is also the coefficient on treated-group × post with unit and date fixed effects. With one common adoption date and more periods, the single interaction pools pre and post dates. An event study instead reports the gap at each relative date minus the gap at the last untreated date.
In this example, compare early to never-treated stores. Their gaps are 5, 5, 10 and 11 points. Equal date weights give a pooled contrast of (10 + 11)/2 − (5 + 5)/2 = 5.5 points. Putting three quarters of post weight on month 0 gives 5.25 points. Changing sample sizes or panel balance can also change the implicit weights. Against month −1, the event-study contrasts at months 0 and 1 are +5 and +6 points.
Early stores adopt in month 0, late stores in month 1. Event time is e = t − g for calendar date t and adoption date g. The baseline is e = −1 under no anticipation. If effects can start a periods early, use a baseline before g − a and screen controls for anticipated exposure through the follow-up.
| Store cohort | Month −2 | Month −1 | Month 0 | Month 1 |
|---|---|---|---|---|
| Early | 18% | 20% | 27% | 30% |
| Late | 16% | 18% | 20% | 26% |
| Never treated | 13% | 15% | 17% | 19% |
At the defaults, early stores gain 7 points and the two untreated cohorts gain 2 points each. The estimated early-cohort effect at adoption is +5 percentage points.
The grid gives each available comparison cohort equal weight. It shows point contrasts from aggregate rates. To combine several treated cohorts at a horizon, specify the target and its weights. For example, equal weight per treated unit gives larger adoption cohorts more weight. A fixed set of contributing cohorts supports a comparison of effects across horizons for the same population.
Already-treated cohorts may have evolving treatment effects, so their observed changes can contaminate a staggered comparison. In the canonical Goodman–Bacon decomposition of a static two-way fixed effects estimate, the two-by-two comparison weights are nonnegative. The implied weights on treated cohort-date effects can be negative. See the staggered-adoption methods below and the offer rollout example.
Earlier outcomes can reveal an implausible comparison. A true null can be rejected by chance, and noisy estimates can miss a consequential violation. With one pre-period there is no earlier change to test. Selecting a method or publication because a test passed can distort subsequent effect estimates and intervals. A fitted trend requires its own justification.
This separate synthetic event study uses three leads, two post-period estimates and a common reference at event time −1. It assumes 80 independent assignment clusters and an asymptotic Gaussian distribution with the fixed covariance shown below. Use the drift control to ask how often a true linear violation would be detected. The sensitivity control applies to the same fixed estimates and targets the effect at event time 0.
At 0.50 outcome units of drift per period, the individual-lead screen detects the violation about 85% of the time. The 80% minimum detectable violation is 0.466 units per period.
At smoothness bound M = 0.25, the robust 95% interval for the event-time 0 effect is 0.22 to 3.08 outcome units.
The individual screen rejects if any single unadjusted 5% lead test rejects, so its overall false-positive rate can exceed 5%. The joint Wald test uses the full lead covariance and a 5% joint critical value. Detection probability and the 80% minimum detectable violation are specific to the proposed drift and test. This asks a different question from planning power to detect a treatment effect.
The smoothness restriction bounds changes in the slope of the underlying untreated-gap path, including the first post-period. A relative-magnitude restriction instead bounds post-period first differences by a multiple of the largest absolute underlying pre-period first difference. Sampled leads have uncertainty. Use a common reference and carry the full covariance, including when converting adjacent contrasts. The identified range below plugs in the pre-period path and omits sampling error. The HonestDiD fixed-length confidence interval (FLCI) uses a fixed half-width to account for sampling uncertainty and the largest bias allowed by the selected restriction. It was computed with the HonestDiD R package, version 0.2.8.
The example compares two group means of baseline-referenced outcomes, with 40 independent clusters per group. The cluster outcome vector has covariance equal to 20 times the displayed matrix in each arm. The covariance of the difference of means then equals the displayed matrix. Pointwise intervals target each coefficient separately. Simultaneous bands use a Bonferroni critical value across all five estimated coefficients. The omitted baseline is zero by construction.
The lead screen averages rejection over 250,000 fixed Gaussian draws. Its percentages are shown to one decimal place. The joint test uses the noncentral chi-squared distribution under the hypothesized drift.
Cluster at the level of assignment and relevant dependence. With few treated clusters, ordinary and bootstrap intervals may give unreliable coverage. Randomization inference needs a defensible assignment mechanism.
These designs extend the two-group comparison to staggered adoption, eligibility subgroups, spillovers, varying treatment intensity, and quantile or exit outcomes. Panel-based counterfactual methods are an alternative when no comparison group has a parallel untreated trend. Cutoff designs apply when eligibility follows a documented score threshold.
One shared start with outcomes before and after? Start with the 2×2 contrast and common-adoption fixed effects. With multiple starts, keep calendar dates and event time separate. The cohort grid shows an unadjusted effect for one cohort and date.
Estimate effects by adoption cohort and calendar date using never-treated or not-yet-treated comparisons outside their anticipation window. Inspect overlap and cohort counts before aggregating.
Estimate cohort-by-event-time effects in a panel using an untreated reference. Report which cohorts contribute at each horizon. A changing cohort mix can look like a changing effect.
Build a window for each adoption cohort with controls untreated throughout it. Keep cohort composition comparable, weight each stack for the target effect, and account for controls reused across stacks.
For each horizon, compare changes from the last untreated date using controls still untreated through that horizon. Check the sample and weights at each horizon.
Use a score whose expected value is locally insensitive to small errors in the outcome and treatment models, under conditional parallel trends and overlap. In panels, estimate the untreated outcome change and treatment propensity from baseline covariates. Adjusting for treatment-affected covariates can introduce bias. Split folds by independent unit or cluster. propensity weighting · cross-fitting
Pooling earlier untreated dates can improve precision when they support the same counterfactual model.
Fit an outcome model on untreated observations. Predict what treated outcomes would have been at supported dates, then average the observed-minus-predicted differences with target weights.
Fit unit or group and date effects using untreated observations. Regress the residualized outcomes on the treatment indicators. Carry first-stage uncertainty into inference.
Combine pre-period contrasts when their moment restrictions are credible. Additional pre-periods can improve precision, and invalid restrictions can introduce bias.
Use a separate cohort-by-calendar-date treatment indicator for each supported cell. With nonlinear models, report the average difference in predicted outcomes on the outcome scale.
Update the comparison set at each adoption horizon. If you detrend using earlier periods, check whether the estimated trends are stable and the remaining comparisons have support.
Hausman comparison. Compare estimates of the same effect on the same sample. Account for their covariance when estimating the uncertainty of their difference. Pre-trend sensitivity
Synthetic control, synthetic DiD and TROP use repeated outcomes from untreated comparison units to estimate what would have happened to the treated units without the intervention. Unlike two-group DiD, synthetic control does not require a comparison group with a parallel untreated trend. It assumes that the weighted blend of comparison units that reproduces the treated unit’s pre-treatment outcomes would have continued to track its untreated outcomes after treatment. The comparison units available for this are often called the donor pool. The methods differ in how they build the counterfactual: unit weights, time weights, and an outcome model.
Compare the treated unit with a weighted blend of untreated comparison units chosen to match its pre-treatment outcome path. Check pre-treatment fit, weight concentration, and placebo gaps under the same fitting rules.
Weight comparison units to match the treated pre-period path up to a level offset. Weight pre-period dates to match the comparison units’ later level. Inspect both sets of weights.
Combine unit and time weighting with additive effects and a latent factor model. Check prediction on untreated cells held out of fitting and sensitivity to the factor specification.
| Area and date | Eligible | Ineligible |
|---|---|---|
| Program area · before | Eligible baseline | Subgroup baseline |
| Program area · after | Exposed | Must be unaffected |
| Comparison area · before | Eligible baseline | Subgroup baseline |
| Comparison area · after | Unexposed comparison | Unexposed subgroup |
Compare changes in the eligibility gap across areas. Require an unaffected subgroup and parallel untreated changes in those gaps. Use a common target covariate distribution when adjusting.
Form a triple difference for each supported cohort and date using an untreated comparison cohort with both eligibility groups. Aggregate using weights for the target population.
Record own treatment and nearby exposure separately. A direct effect holds nearby exposure fixed. A spillover effect varies nearby exposure among untreated units. Check support for the chosen contrast.
In marketing data, treatment intensity can be measured by weekly advertising spend, impressions or gross rating points in a market. Markets can launch at different budgets, and spend can later rise, fall, pause or resume. Which comparison is available depends on whether some markets stay at zero spend, whether spend changes come close to zero, and whether some markets hold their starting spend.
| Market | Baseline | Week 1 | Week 2 | Week 3 |
|---|---|---|---|---|
| Market ANo paid media | 0 | 0 | 0 | 0 |
| Market BSmall launch budget | 0 | 0.5 | 0.5 | 0.5 |
| Market CLarge launch budget | 0 | 8 | 8 | 8 |
| Market DRaises, pauses, resumes | 20 | 40 | 0 | 30 |
| Market EHolds its starting spend | 20 | 20 | 20 | 20 |
Compare markets that launch at a given weekly spend with markets that stay at zero spend, such as Market C against Market A. Under parallel trends in untreated outcomes, this identifies the average effect of that spend level for the markets that chose it. Comparing effects across spend levels, such as Market B’s budget against Market C’s, requires additional comparability assumptions: markets that chose larger budgets may have responded differently to the same spend.
Sometimes every market starts spending in the same week and none stays at zero, so no market can play Market A’s role. Markets whose spend rises only slightly, like Market B, can then identify the untreated change in outcomes under continuity at zero spend and common trends. Check whether enough markets launch with budgets near zero to support that boundary. If every launch budget is far from zero, the untreated change requires extrapolation or additional comparisons.
Compare switchers, markets whose spend changes, with stayers that hold the same starting spend through follow-up, such as Market D against Market E. The effect compares Market D’s sales under its observed spend path with its sales had it held its starting spend. Advertising effects can carry over into later weeks, so check earlier spend histories. Inspect increases and cuts separately: Market D’s increase in week 1 and its pause in week 2 can move sales in opposite directions.
Find the treated pre-period outcome’s rank in the control distribution. Read the control post-period outcome at that rank. Check shared support and stable composition under a common monotone outcome transformation.
Apply the control group’s change in a specified quantile to the treated group’s pre-treatment quantile. This assumes parallel untreated quantile shifts on the chosen outcome scale.
For contract exit, compare cumulative exit by a specified duration. Align the start date and risk sets. Check censoring before comparing outcomes.
| Group | Survival at month 1 | Survival at month 2 | ΔH | Interval exit probability among month-1 survivors |
|---|---|---|---|---|
| Comparison | 0.80 | 0.72 | 0.105 | 10% |
| Treated, observed | 0.75 | 0.60 | 0.223 | 20% |
The interval exit probability is 1 − exp(−ΔH), where H = −log(survival). Use an additive or proportional hazard restriction to reconstruct counterfactual survival, then report cumulative exit as one minus survival. Retention
Does a documented score threshold change eligibility, with outcome data just above and below it? Go to sharp and fuzzy Regression Discontinuity to choose between an eligibility effect and a local receipt effect, and use the cutoff explorer to inspect both sides.
This chooser covers designs that use outcome histories or a documented cutoff. Choose the outcome, timing and comparisons you observe. For a post-only study, see the assignment and adjustment routes.
Random assignment can identify an effect using follow-up outcomes alone. See randomized assignment and the Offer Experiment. In observational data, propensity-based adjustment can support a comparison if measured pre-treatment covariates account for confounding and there is adequate overlap.
Staggered DiD. Compare each adoption cohort with unexposed, untreated observations at the same dates. Verify parallel untreated changes, no anticipation, and stable composition. See staggered-adoption methods.
Before fitting, check who remains untreated and unexposed at each horizon. Tabulate missing outcomes and check whether group composition changes.