← Homepage
Applied Data Science Lab · Causal Inference

Staggered Difference-in-Differences

October 22, 2026

Author: Daniel Jordan Viray

The motivating question: CRISPR gene-therapy centers are opening region by region, at different times. Did opening a center reduce crisis-related ER visits for sickle cell patients — or would visits have changed anyway?

The problem. The centers didn’t all open on one date, and nobody randomized the order. So there is no single “before” and “after” to compare — and ordinary difference-in-differences assumes there is.

The plan. Do it one wave at a time. For each region that opens, compare its change against regions that haven’t opened yet. Then average the wave answers into one number.

01

The motivating example

Casgevy, the first CRISPR gene therapy (FDA-approved December 2023 for sickle cell disease), is given only at authorized treatment centers — and those centers switched on in waves, region by region [staggered treatment adoption]. Here is a small toy version with four regions. The outcome is crisis-related ER visits per 100 patients per month.

RegionPatientsCenter opens
Raleigh, NC20January
Boston, MA20February
Denver, CO20August
Phoenix, AZ40never — the holdout

In this toy world, a working center really does cut visits: by 4 a month in Raleigh and 3 a month in Boston. That’s the planted truth. Now pretend you don’t know it, and try to recover it from the numbers below. (Denver opens too late to measure in this example — it will earn its keep as a control group.)

The measurement rule · every comparison below uses it

A program doesn’t work the day it launches, so don’t measure from launch day. For each region whose center opens:

  1. Before = the average of the 3 months before the opening.
  2. Wait = skip the first 3 months after the opening — the program is still taking hold.
  3. After = the average of the 3 months after the wait.
  4. DiD = (After − Before) for the treated region, minus (After − Before) for a control region over the same calendar months.
BEFORE WAIT AFTER OctNovDec JanFebMar AprMayJun average these 3 months program taking hold — don’t measure yet average these 3 months center opens Jan 1

The rule drawn for Raleigh (opens in January): three months to average, three months to wait, three months to average.

RegionWaveOctNovDecJanFebMarAprMayJunJulAug
Raleigh, NCopens Jan · 20 patients90.090.591.090.590.089.589.089.590.090.591.0
Boston, MAopens Feb · 20 patients86.086.587.087.587.086.586.086.587.087.588.0
Denver, COopens Aug · 20 patients94.094.494.895.295.696.096.496.897.297.697.0
Phoenix, AZnever opens · 40 patients88.088.589.089.590.090.591.091.592.092.593.0

Crisis-related ER visits per 100 patients per month. Each region’s months are tinted by their role in that region’s own timeline: gray months are the three averaged into its Before, steel blue months are the wait after its center opens, and amber months are the three averaged into its After. Denver opens so late that its wait and After run past August, off the end of the table — and Phoenix never opens, so its row has no tints at all: it only lends its months to other regions’ comparisons. In the background, visits creep up about +0.5 a month everywhere — except Denver, which drifts a touch slower (+0.4); real regions never move in perfect lockstep. Try it: hover or tap any highlighted number in the calculations below — the exact cells it averages light up.

02

Why we can’t just use ordinary DiD

Ordinary difference-in-differences [canonical 2×2 DiD] needs three things: one treated group, one control group, and one date when treatment starts. Everyone is “before” until that date and “after” from then on. Subtract the control group’s change from the treated group’s change, and the background trend cancels out.

A wave rollout has none of the three. Raleigh starts in January, Boston in February, Denver in August. There is no single before and after — so who is “the control group”?

Force it anyway, and the trap springs. Say you estimate Boston using Raleigh as the control — Raleigh isn’t in Boston’s wave, so it feels safe. But Raleigh’s center was already open for Boston’s whole span, so Raleigh’s numbers already contain its own −4 effect — and subtracting them subtracts a real treatment effect from Boston’s answer, which can shrink it, erase it, or even flip its sign. Comparisons against an already-treated group [forbidden comparisons] are the core thing to avoid: compare each treated group only against holdouts or regions that haven’t been treated yet.

The fix isn’t a fancier formula. It’s to run a separate small DiD for each wave, each time against regions that are still untreated — then combine the answers. The next three sections do exactly that.

03

The simple case: measure against the holdout

See the toy table again
RegionWaveOctNovDecJanFebMarAprMayJunJulAug
Raleigh, NCopens Jan · 20 patients90.090.591.090.590.089.589.089.590.090.591.0
Boston, MAopens Feb · 20 patients86.086.587.087.587.086.586.086.587.087.588.0
Denver, COopens Aug · 20 patients94.094.494.895.295.696.096.496.897.297.697.0
Phoenix, AZnever opens · 40 patients88.088.589.089.590.090.591.091.592.092.593.0

The same table as section 01 — and the highlighting works here too: hover or tap a number in the calculations below and its cells light up in this copy.

Phoenix never gets a center. It is the holdout [never-treated control]: untreated in every month, so it can stand in for “what would have happened anyway” for any wave. Start with Raleigh. Raleigh’s own change is 89.5 − 90.5 = −1.0 — but visits were rising everywhere, so −1.0 is not the program’s effect. Phoenix’s change over the same months shows the background trend:

Raleigh vs Phoenix: (89.5 − 90.5) − (91.5 − 88.5) = (−1.0) − (+3.0) = −4.0 visits

Exactly the planted truth. Same move for Boston, whose windows shift one month later (Before Nov–Jan, After May–Jul):

Boston vs Phoenix: (87.0 − 87.0) − (92.0 − 89.0) = 0.0 − (+3.0) = −3.0 visits

Notice Boston’s raw change is exactly 0. With no control group you’d say its center did nothing. The control group is what turns “no change” into “−3.”

04

The other option: regions that haven’t been treated yet

A control doesn’t have to stay untreated forever. It only has to be untreated during the months you’re comparing [not-yet-treated controls]. Denver’s center opens in August. Raleigh’s window ends in June and Boston’s in July — so for both waves, Denver is still untreated the whole time. Clean. Raleigh again, now against Denver:

Raleigh vs Denver: (89.5 − 90.5) − (96.8 − 94.4) = (−1.0) − (+2.4) = −3.4 visits
Boston vs Denver: (87.0 − 87.0) − (97.2 − 94.8) = 0.0 − (+2.4) = −2.4 visits

Slightly different answers than the holdout gave (−3.4 instead of −4.0). That’s because Denver’s background drift (+2.4) isn’t identical to Phoenix’s (+3.0). Two honest rulers, slightly different readings — normal. One condition matters: the window has to end before the control’s own center opens. If Denver opened in June instead of August, it couldn’t serve as Raleigh’s control at all.

05

Pooling the answers into one number

Each wave now has two scores — one per control group. You don’t have to pick one. Average them, giving each control group a vote weighted by how many patients it has. Phoenix has 40 patients, Denver 20:

Raleigh: (40 × −4.0 + 20 × −3.4) / (40 + 20) = (−160 − 68) / 60 = −3.8 visits
Boston:  (40 × −3.0 + 20 × −2.4) / (40 + 20) = (−120 − 48) / 60 = −2.8 visits

That’s all pooling means: a weighted average, bigger groups counting more. (Merge Phoenix and Denver into one 60-patient control group first, then do a single subtraction — you get exactly −3.8 and −2.8 again. Same math, two ways to see it.)

The headline number is the same move one level up: average the wave answers, weighted by treated patients. Raleigh and Boston have 20 patients each, so it’s a plain average:

(−3.8 + −2.8) / 2 = −3.3 visits

That single number is the estimated causal effect of the program [average treatment effect on the treated, ATT]: opening a center caused about 3.3 fewer ER visits per 100 patients per month. The whole recipe behind it — one clean DiD per wave, then a weighted average — is a published method, not an improvisation [Callaway & Sant’Anna (2021) group-time ATT estimator]. The planted truth was −3.5 on average (−4 and −3). The small miss is Denver’s slightly different drift leaking into both waves’ scores — real estimates always wobble around the truth like this.

Denver could be measured too — just not with this table, since its After window falls past August. With data covering those months, Denver would be scored against the holdout only (by then Phoenix is the one clean control left) and pooled in with Raleigh and Boston, weighted by its 20 patients, exactly like the waves above.

06

Staggered DiD Visualized

Everything so far was arithmetic on the table in section 01. Here is that same table drawn two ways — first on the calendar, then with each region’s clock reset to its own opening.

Calendar time. Each line is one region’s row of the table. The small tags are each center’s slope before its opening: visits were creeping up about half a visit a month in Raleigh and Boston, a touch slower in Denver — close to Phoenix’s +0.5, which is what a fair comparison needs [parallel pre-trends]. The light dotted line in each treated region’s own color, trailing it, is its counterfactual: its pre-opening trend carried forward — what that region’s numbers would have done with no center, given the effects estimated in sections 03–05. Once a center starts working, its solid line drops away from the dotted one, and the size of that gap is the effect — labeled right on the chart with each region’s DiD.

84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 DiD effect −4.0 DiD effect −3.0 94.0 94.4 94.8 95.2 95.6 96.0 96.4 96.8 97.2 97.6 97.0 90.0 90.5 91.0 90.5 90.0 89.5 89.0 89.5 90.0 90.5 91.0 88.0 88.5 89.0 89.5 90.0 90.5 91.0 91.5 92.0 92.5 93.0 86.0 86.5 87.0 87.5 87.0 86.5 86.0 86.5 87.0 87.5 88.0 Denver · +0.4/mo before Raleigh · +0.5/mo before Boston · +0.5/mo before Phoenix · +0.5/mo Oct Nov Dec Jan Feb Mar Apr May Jun Jul Aug

Raleigh, NC  Boston, MA  Denver, CO  Phoenix, AZ  counterfactual (no center), drawn as a light dotted line in each region’s own color. Crisis-related ER visits per 100 patients per month — the toy table from section 01, drawn. Every month carries a marker with its value labeled; a ring marks each center’s opening month. Denver opens in the last month shown, so its dotted counterfactual only just begins.

Event time [event-study plot]. The same data, but each region’s months are relabeled by their distance from its own opening: the opening month is 0, the three Before months are −3, −2, −1, the wait is 0 to +2, and the After months are +3, +4, +5 — the bands use section 01’s colors. Now the treated regions tell one story in one picture: rising together before 0, bending down through the wait, then running below their dotted counterfactuals once the centers are working. The gap after +3 is each region’s effect — about 4 visits a month for Raleigh, 3 for Boston. Phoenix never opens, so it has no month 0 and isn’t on this graph; Denver opens in the last month of data, so its line stops at 0.

BEFORE WAIT AFTER 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 center opens (month 0) DiD effect −4.0 DiD effect −3.0 96.4 96.8 97.2 97.6 97.0 90.0 90.5 91.0 90.5 90.0 89.5 89.0 89.5 90.0 90.5 91.0 86.0 86.5 87.0 87.5 87.0 86.5 86.0 86.5 87.0 87.5 88.0 Denver · +0.4/mo before Raleigh · +0.5/mo before Boston · +0.5/mo before −4 −3 −2 −1 0 +1 +2 +3 +4 +5 +6 +7

Raleigh, NC  Boston, MA  Denver, CO  counterfactual (no center), a light dotted line in each region’s own color. Aligned this way, the pre-treatment slopes are easy to compare — the treated lines climb side by side before month 0 — and so are the effects: from month +3 on, each solid line sits below its dotted counterfactual by roughly its DiD from sections 03–05, labeled on the chart.

07

One caveat: anticipation

An anticipation effect [anticipation effect] is when the outcome changes before treatment officially starts, because people know it’s coming and change their behavior in advance.

Say, for example, the Raleigh center opens in January. Anticipation would mean ER visits among eligible patients shift in, say, December, even though no one has been treated yet. A few ways that could happen:

Let’s go with the example where ER visits dip in December.

A brief example — Raleigh again, with exactly one change: December dips from 91.0 to 88.0.

MonthNo anticipationWith anticipation
Oct90.090.0
Nov90.590.5
Dec91.088.0
Before average90.589.5
After average (Apr–Jun)89.589.5
DiD vs Phoenix−4.0−3.0
92 90 88 center opens Jan 1 Dec dips to 88.0 without anticipation with anticipation Oct Nov Dec Jan Feb Mar Apr May Jun

Raleigh’s monthly visits, with and without anticipation. The lines differ in exactly one month — but December sits inside the Before window, so that one month moves the whole estimate.

Nothing about the program changed; the After months are identical. But the Before average drops from 90.5 to 89.5, so the DiD reads −3.0 instead of the true −4.0 — a quarter of the effect is hiding in the baseline.

In theory, you account for it by cleaning the baseline: drop the last month or two before each opening from the Before window, or shift the whole window earlier, so “before” means before anyone could react to the news.

08

Assumptions: what has to be true

Parallel trends [parallel trends assumption] — without the program, treated and control regions would have kept moving in parallel. Check: plot the months before any opening; the lines should already be rising together.

No anticipation [no anticipation] — nobody changes behavior before their own center opens. Check: look for a dip or jump in the last months before each opening — section 07 shows what the dip looks like.

No spillovers [no interference · Stable Unit Treatment Value Assumption (SUTVA)] — one region’s center doesn’t change another region’s visits. Check: watch control regions bordering a new center; if their visits start falling too, patients are probably crossing over.

Stable measurement [stable composition] — the patients counted, and the way visits are coded, stay the same across regions and months. Check: track patient counts and coding rules over time; a sudden change in either can fake an effect.

09

Limitations: what the number doesn’t tell you