Tutorials › Multi-Arm Multi-Stage (MAMS) Designs › Difference-in-Differences for Platform Control Drift

Platform and Umbrella Trials · Tutorial 375 of 499

Difference-in-Differences for Platform Control Drift

Learn how a difference-in-differences contrast adjusts a platform comparison for control-outcome drift and what parallel trends must mean for that adjustment to be credible.

Intermediate 10 min read

What You'll Learn

  • Define the arm-specific difference-in-differences estimand using outcomes in matched pre- and post-opening periods.
  • Derive why the contrast identifies a post-opening treatment effect under parallel trends.
  • Distinguish parallel trends from equality of baseline outcome levels.
  • Calculate and interpret difference-in-differences contrasts in clinical examples.
  • Assess why staggered arm openings require arm- and time-specific comparisons.
  • Recognize diagnostic signals and limitations that the contrast cannot resolve.

Why Compare Changes Rather Than Levels?

In a platform trial, the outcome among control participants can drift over calendar time. A new experimental arm may open after that drift has begun, so a post-opening comparison with earlier controls can mix the treatment effect with changes that would have occurred anyway. Difference-in-differences (DiD) removes the observed change in a comparison group from the observed change in the target group. Its usefulness depends on a specific assumption about how the groups would have changed without the intervention.

The contrast is an adjustment for a particular form of control drift, not a substitute for concurrent randomized controls. It is most interpretable when the target group and comparison group are defined in advance, outcomes are available in the same pre- and post-opening windows, and the comparison group remains untreated by the added intervention.

Definition: Let \(G=1\) identify the target group for a specified platform-arm comparison and \(G=0\) identify its comparison group. Let \(t=0\) denote the pre-opening period and \(t=1\) the post-opening period. Define \(Y_i(0,t)\) as the outcome individual \(i\) would have in period \(t\) without the added intervention, for an individual in either group. Define \(Y_i(1,1)\) as the target-group member's outcome in the post period under the intervention. The post-period effect for the target group is \(E[Y(1,1)-Y(0,1)\mid G=1]\). The observed difference-in-differences contrast is the target group's pre-to-post change minus the comparison group's pre-to-post change.

The notation describes group-level potential outcomes; it does not require observing the same people in both periods. DiD can be calculated from repeated cross-sections or from longitudinal data, but the interpretation depends on how the groups and populations are defined. In particular, the pre-period target-group outcome is untreated, and the comparison group's outcomes are untreated in both periods. The same outcome definition and measurement scale must be used across all four group-period cells.

The Contrast and Its Assumption

Write \(\mu_{gt}\) for the observed mean outcome in group \(g\) and period \(t\). If the target group is untreated before the arm opens and treated afterward, while the comparison group remains untreated, the contrast is

$$ \widehat{\Delta}_{DiD} = (\bar{Y}_{1,1}-\bar{Y}_{1,0}) - (\bar{Y}_{0,1}-\bar{Y}_{0,0}). $$

In population notation, the corresponding contrast uses conditional expectations instead of sample means. The key identifying assumption is parallel trends in untreated potential outcomes: over the selected periods, the target and comparison groups would have had the same mean change if neither had received the added intervention.

$$ E[Y(0,1)-Y(0,0)\mid G=1] = E[Y(0,1)-Y(0,0)\mid G=0]. $$

Parallel trends does not require the groups to have the same baseline mean. For example, groups could begin at different average symptom scores and still satisfy the assumption if their untreated mean scores would change by the same amount. The assumption concerns changes, not levels. It is also scale-specific: this version concerns additive changes in the outcome mean.

Theorem: If the target group is untreated in period 0 and treated in period 1; the comparison group is untreated in both periods; there is no anticipation of the intervention; and parallel trends holds for the chosen groups and periods, then the population DiD contrast equals the post-period average treatment effect for the target group, \(E[Y(1,1)-Y(0,1)\mid G=1]\).

The conclusion follows by separating the target group's observed change into its untreated change and its treatment effect. The comparison group's observed change supplies the untreated trend under parallel trends.

$$ \begin{aligned} &\{E[Y(1,1)\mid G=1]-E[Y(0,0)\mid G=1]\}\\ &\quad-\{E[Y(0,1)\mid G=0]-E[Y(0,0)\mid G=0]\}\\ &= E[Y(1,1)-Y(0,1)\mid G=1]\\ &\quad+\{E[Y(0,1)-Y(0,0)\mid G=1] -E[Y(0,1)-Y(0,0)\mid G=0]\}. \end{aligned} $$

The bracketed difference in untreated trends is zero under parallel trends. The remaining term is the target group's post-period treatment effect. This argument also shows the consequence of a violation: the DiD contrast equals the treatment effect plus the difference between the two groups' untreated trends. A trend mismatch therefore becomes bias, not merely a loss of precision.

Assumptions to Check in a Platform Comparison

The algebra is simple; the design conditions are substantive. Before interpreting the contrast as an effect, ask whether each of the following is credible for the particular arm and time window.

  • Comparable untreated trends: absent the added intervention, the groups' mean outcomes would have changed in parallel over these periods. This is not guaranteed by similar baseline means or by a good fit to measured covariates.
  • No anticipation: the target group is not affected by knowledge of, preparation for, or access to the intervention before the designated opening period. Otherwise the pre-period outcome may already reflect treatment-related changes.
  • Unexposed comparison group: the comparison group does not receive the added intervention and is not indirectly affected by it in a way that changes its outcomes.
  • Stable interpretation of the cells: outcome measurement, eligibility, follow-up, and group composition are sufficiently comparable over time. Large changes can make a mean change reflect who was observed rather than a temporal trend in a comparable population.
  • Appropriate uncertainty calculation: the four cell means are estimates. Their dependence structure and the trial's sampling or randomization features matter when calculating a standard error or interval. A DiD point estimate alone does not establish statistical significance.

These conditions are not proven by the contrast itself. Earlier material on calendar-time confounding motivates checking the outcome's trajectory and the composition of the comparison. Examining pre-period data can reveal obvious differences in trends, but agreement before arm opening cannot establish that untreated trends would have remained parallel afterward.

Worked Example: Adjusting for a Shared Outcome Drift

Suppose a hypothetical platform comparison measures a score where higher values are better. The target group receives the added intervention after the pre-period. The comparison group remains untreated. All four entries below are mean scores in points.

GroupPre-opening meanPost-opening mean
Target group10.013.0
Comparison group8.09.5

The target group's observed increase is \(13.0-10.0=3.0\) points. The comparison group's increase is \(9.5-8.0=1.5\) points. Therefore,

$$ \widehat{\Delta}_{DiD} =(13.0-10.0)-(9.5-8.0) =3.0-1.5 =1.5\text{ points}. $$

Under the assumptions above, the estimated post-period effect for the target group is an increase of 1.5 score points beyond the change estimated from the comparison group's drift. The baseline means differ by 2.0 points; that difference does not itself invalidate DiD. No standard error or interval can be calculated from these means alone, so this arithmetic is an effect estimate, not a test of statistical significance.

Arms Opening at Different Times

When platform arms open at different dates, there is generally no single pre/post contrast that automatically applies to every arm. For each arm, specify its own opening time, pre- and post-periods, target population, and comparison group. The parallel-trends condition is then a claim about that arm's target and comparison groups over those particular periods. A group that is an appropriate comparison for one opening may be unsuitable for another because the time windows or populations differ.

A simple pooled before-and-after calculation can also use the wrong calendar periods. If one arm opens earlier, its post period may overlap another arm's pre period. Treating the latter as an untreated comparison is valid only if it truly remains unexposed and supplies a credible untreated trend for the earlier arm. If comparison units later receive the intervention, their data after exposure cannot be treated as untreated outcomes for that contrast. Arm-specific contrasts keep the time comparison explicit; they do not, by themselves, resolve differences in populations or calendar conditions.

Worked Example: Two Arms With Separate Opening Windows

Consider hypothetical score means for two arms that open at different times. Arm A opens after period 0, and Arm B opens after period 1. For each arm, assume a separate untreated comparison group is observed in the same two periods as that arm's opening window.

Arm-specific comparisonTarget preTarget postComparison preComparison post
Arm A: periods 0 to 110.014.09.011.0
Arm B: periods 1 to 212.017.011.013.0

For Arm A, the target increase is \(14.0-10.0=4.0\) points and the comparison increase is \(11.0-9.0=2.0\) points, so its contrast is

$$ \widehat{\Delta}_{A}=(14.0-10.0)-(11.0-9.0)=2.0\text{ points}. $$

For Arm B, the changes are \(17.0-12.0=5.0\) and \(13.0-11.0=2.0\) points, respectively:

$$ \widehat{\Delta}_{B}=(17.0-12.0)-(13.0-11.0)=3.0\text{ points}. $$

These are arm- and window-specific estimates, each conditional on its own parallel-trends assumption. The different values do not, by themselves, show that Arm B is more effective: the target populations, periods, and comparison groups may differ. A direct comparison of the estimates would require additional assumptions and a clearly defined estimand.

Diagnostics, Alternatives, and Limits

Useful checks focus on whether the design makes the assumptions plausible and whether the data contradict them. Plot group means over several pre-opening periods when available; look for visibly different slopes or abrupt changes. Check that the chosen comparison group is observed over the same calendar windows, and examine whether group sizes or measured characteristics shift substantially across periods. Confirm that the outcome is defined and measured consistently. These checks can identify warning signs, but none can reveal the target group's unobserved post-period outcome without treatment.

A tempting diagnostic is to see whether a pre-period DiD estimate is near zero. A nonzero estimate warns against parallel trends over that earlier interval. A near-zero estimate is not proof of parallel trends after opening: the post-opening trend could diverge, and pre-period estimates may be imprecise. A plot or test should therefore be treated as evidence about plausibility, not verification of the identifying assumption.

The main alternatives answer different questions. A post-period comparison alone does not adjust for baseline group differences or drift. A target-group before-and-after change adjusts for neither shared secular change nor other time changes. A concurrent randomized comparison is generally preferable for estimating a randomized treatment effect because randomization supports comparability within its trial population; DiD is relevant when a specified comparison must account for a pre/post drift and its assumptions are defensible. Regression adjustment can encode time and group terms, but a regression specification does not make parallel trends true. The earlier material on regression adjustment addresses that modeling approach; here the central issue is the identifying contrast.

DiD has important limitations. It cannot separate treatment effects from a group-specific shock that begins at the same time as arm opening. It may also be biased by changing group composition, anticipation, spillover, or different untreated trends. With arms opening at different times, a contrast based on an inappropriate time window or an already-treated comparison group can have no valid untreated-trend interpretation. The method is thus an explicit assumption-based adjustment, not a general correction for every kind of calendar-time bias.

Common mistake: “The groups had different pre-period means, so parallel trends fails.” This is incorrect: parallel trends concerns their counterfactual changes, not equality of their levels. The converse is also a mistake: equal baseline means do not establish parallel trends. Compare the relevant untreated trends and justify why the comparison group represents the target group's counterfactual change.

Worked Example: Quantifying Bias From Nonparallel Trends

Suppose a hypothetical target group has a pre-period mean of 10.0 points and a post-period treated mean of 13.0. The untreated comparison group changes from 5.0 to 7.0 points. The observed DiD is

$$ (13.0-10.0)-(7.0-5.0)=3.0-2.0=1.0\text{ point}. $$

Now suppose, contrary to parallel trends, the target group's untreated mean would have risen by 2.5 points rather than the comparison group's 2.0-point increase. Its untreated post-period mean would then be \(10.0+2.5=12.5\) points. The target treatment effect would be \(13.0-12.5=0.5\) points. The DiD estimate exceeds that effect by \(1.0-0.5=0.5\) points, exactly the difference between the untreated trends, \(2.5-2.0=0.5\). In a real application the target group's untreated post-period mean is unobserved, so this calculation illustrates the bias mechanism rather than providing a way to measure that bias directly.

Key takeaway: A platform DiD contrast is a target group's pre-to-post change minus the matched comparison group's change. It identifies a post-opening effect only when the comparison group's change represents the target group's untreated change for the same arm-specific time window.

Check Your Understanding

Answer each question, then compare your reasoning with the solutions.

  1. A target group's outcome mean changes from 20 to 24 units; a comparison group's mean changes from 18 to 21 units. What is the DiD contrast?
  2. Must the target and comparison groups have equal pre-period means for parallel trends to hold? State what the assumption requires instead.
  3. An arm opens after period 1, and its proposed comparison group begins receiving the intervention in period 2. Can the comparison group's period-2 outcome be used as an untreated post-period outcome for this contrast? Explain.
  4. What does a pre-period plot with nearly identical group slopes establish about post-opening parallel trends?
  5. If the target group's untreated trend would be 0.8 units larger than the comparison group's trend, what is the direction and size of the DiD bias relative to the target treatment effect?

Solutions. (1) The target change is \(24-20=4\) units and the comparison change is \(21-18=3\), so DiD is \(4-3=1\) unit. (2) No. The groups may have different baseline levels; their mean untreated changes must be equal over the selected periods. (3) No. Once exposed, that group's period-2 outcome is not an untreated comparison outcome for the target arm. (4) It provides limited evidence about pre-period compatibility, but cannot establish that untreated trends would remain parallel after opening. (5) The DiD bias is \(+0.8\) units: the contrast overstates the target treatment effect by 0.8 units because it subtracts a smaller comparison trend than the target's true untreated trend.

Clinical Biostats