Why Compare Interrupted Trajectories?
An intervention may coincide with a change in the treated population’s outcome even when the intervention had no effect. A secular trend, seasonal fluctuation, or wider shock could also change outcomes. A comparison series helps separate changes shared by both series from changes that occur differentially in the treated series. Comparative interrupted time-series (CITS) analysis formalizes this comparison by modeling the treated-control outcome gap before and after intervention.
The analysis is only as credible as its comparison and assumptions. A segmented regression can summarize a trajectory, but its coefficients do not by themselves establish that an intervention caused the observed change. In particular, the pre-intervention gap should be examined to judge whether a linear continuation is a plausible counterfactual.
The Segmented Regression Model
Set \(t=0\) at the intervention period, with negative \(t\) values for pre-intervention periods and nonnegative values for post-intervention periods. Define \(P_t=1\) for \(t\geq 0\) and \(P_t=0\) otherwise, and define \(R_t=\max(0,t)\), the number of periods since intervention. A standard linear segmented model for the gap is:
Before intervention, the model is \(D_t=\beta_0+\beta_1t+\varepsilon_t\): \(\beta_0\) is the extrapolated gap at \(t=0\), and \(\beta_1\) is the pre-intervention linear trend in the gap per period. After intervention, the fitted gap is \((\beta_0+\beta_2)+(\beta_1+\beta_3)t\). Thus \(\beta_2\) is the change in the gap’s level at the intervention, relative to the pre-intervention line, and \(\beta_3\) is the change in its slope, measured in outcome units per period.
At \(k\) periods after intervention, the modeled departure from the extrapolated pre-intervention gap is \(\beta_2+k\beta_3\). This is the estimated differential change at that horizon. It is not necessarily the treated series’ raw change: the comparison series and the pre-existing gap trend both matter.
Worked Example: Fitting the Differential Level and Slope
Worked Example: Fitting the Differential Level and Slope
Suppose a hypothetical program begins at \(t=0\). The outcome is a monthly aggregate rate measured in units per 1,000 people. The following series are recorded; the last column is the treated outcome minus the comparison outcome.
| Time \(t\) | Comparison outcome | Treated outcome | Gap \(D_t\) |
|---|---|---|---|
| -4 | 100 | 115 | 15 |
| -3 | 102 | 116.5 | 14.5 |
| -2 | 104 | 120 | 16 |
| -1 | 106 | 125.5 | 19.5 |
| 0 | 108 | 133 | 25 |
| 1 | 110 | 135.5 | 25.5 |
| 2 | 112 | 140 | 28 |
| 3 | 114 | 146.5 | 32.5 |
Fit the pre-intervention line. The four pre-intervention gaps have mean \(\bar{D}=65/4=16.25\), and the corresponding time values have mean \(\bar{t}=-2.5\). The least-squares slope is:
The intercept is \(\hat{\beta}_0=\bar{D}-\hat{\beta}_1\bar{t}=16.25-(1.5)(-2.5)=20\). The pre-intervention fitted gap at \(t=0\) is therefore 20 units per 1,000 people, and the gap’s fitted pre-intervention trend is an increase of 1.5 units per 1,000 people per month.
Fit the post-intervention line. Write \(k=t\) for the post-intervention periods \(0,1,2,3\). Their gaps have mean \(\bar{D}=111/4=27.75\), and \(\bar{k}=1.5\). The slope is:
The post-intervention line’s intercept at \(k=0\) is \(27.75-(2.5)(1.5)=24\). The differential level change is the post-line intercept minus the extrapolated pre-line intercept: \(\hat{\beta}_2=24-20=4\) units per 1,000 people. The differential slope change is \(\hat{\beta}_3=2.5-1.5=1.0\) unit per 1,000 people per month.
The fitted contrast model is consequently \(D_t=20+1.5t+4P_t+1.0R_t\). For example, at \(t=2\) its fitted gap is \(20+(1.5)(2)+4+(1.0)(2)=29\). The observed gap is 28, so this observation is one unit below its fitted value. The arithmetic illustrates the model; it does not establish that the assumptions for a causal interpretation hold.
Why the Coefficients Are Differences Between Lines
The interpretation of the level and slope coefficients follows directly by writing the model in its pre- and post-intervention forms. Before intervention, \(P_t=R_t=0\), so the fitted line is \(\beta_0+\beta_1t\). After intervention, \(P_t=1\) and \(R_t=t\), so it is \((\beta_0+\beta_2)+(\beta_1+\beta_3)t\). Subtracting the pre-intervention line from the post-intervention line at time \(t=k\) gives:
This subtraction explains why the coefficients describe differential changes in the gap, not changes in the treated series alone. It also shows why reporting only \(\beta_2\) can be incomplete: if the slope changes, the estimated departure from the extrapolated pre-intervention gap evolves with time.
The segmented model can also be viewed as fitting one line to the pre-intervention gaps and another to the post-intervention gaps, then expressing the latter line’s intercept and slope as differences from the former. To see this, the pre-period fitted line has intercept \(\beta_0\) and slope \(\beta_1\); the post-period line has intercept \(\beta_0+\beta_2\) and slope \(\beta_1+\beta_3\). With separate, unrestricted lines for the two periods, least squares minimizes the sum of the pre-period squared residuals plus the sum of the post-period squared residuals. The resulting two line fits can therefore be translated into the four coefficients of the segmented model.
Worked Example: Interpreting the Effect at a Specified Horizon
Use the fitted coefficients from the hypothetical program example: \(\hat{\beta}_2=4\) units per 1,000 people and \(\hat{\beta}_3=1.0\) unit per 1,000 people per month. The estimated differential change at \(k=3\) months after intervention is:
The interpretation is that, under the model and causal assumptions, the treated-control gap at three months is estimated to be 7 units per 1,000 people greater than the gap predicted by continuing the pre-intervention line. This is a contrast at the three-month horizon, not a claim that the treated outcome itself increased by 7 units. The comparison outcome could also have changed, and the pre-intervention gap had a trend.
At \(k=0\), the same formula gives \(4+0(1.0)=4\) units per 1,000 people: the estimated immediate differential level change. Each additional month adds an estimated 1.0 unit per 1,000 people to the departure from the extrapolated line. Neither calculation alone gives uncertainty; an interval or test requires a suitable variance estimate for the fitted contrast.
Checking Pre-Intervention Fit
A crucial diagnostic is whether a linear trend describes the pre-intervention gap well enough to make its continuation a credible counterfactual. Examine the pre-period observations, the fitted line, and residuals \(e_t=D_t-\hat{D}_t\). Residuals that systematically curve, trend, or cluster can reveal a mismatch that a single summary statistic conceals. The number of pre-intervention periods also matters: a short series may provide little information about trend shape.
A common summary is the pre-intervention root mean squared error (RMSE), the square root of the average squared difference between observed and fitted pre-period gaps. It is expressed in the outcome’s units. RMSE describes the typical magnitude of these in-sample discrepancies; it is not a test of the causal assumptions and does not, by itself, determine whether fit is adequate. Its size must be considered alongside the outcome scale, residual patterns, and the purpose of the analysis.
Worked Example: A Small RMSE Can Hide a Trend Pattern
Suppose a different hypothetical analysis observes five pre-intervention gaps, in outcome units, of 10, 12, 16, 22, and 30 at equally spaced times coded \(t=1,2,3,4,5\). Fit a linear trend to these gaps before considering a post-intervention comparison.
The mean time is 3 and the mean gap is 18. The least-squares slope is:
The intercept is \(18-(5)(3)=3\), giving fitted gaps of 8, 13, 18, 23, and 28. The residuals are \(2,-1,-2,-1,2\). Thus:
The residuals are positive at both ends and negative in the middle, a systematic curved pattern rather than an evidently random scatter around the line. Even if an RMSE of 1.673 units seemed modest on the outcome scale, this pattern would make a linear extrapolation questionable. The appropriate conclusion is not that a causal effect has been disproved, but that the chosen linear pre-intervention fit needs scrutiny before it is used as the counterfactual trend.
Assumptions, Inference, and Common Mistakes
A causal interpretation of \(\beta_2+k\beta_3\) requires more than a good-looking regression output. The comparison must represent how the treated series would have evolved relative to its control without the intervention. The pre-intervention gap provides evidence about that relationship but cannot verify that it would persist after intervention. A new shock affecting only the treated series, spillover of the intervention to the comparison, or a change in the way outcomes are measured could invalidate the interpretation.
Time-series errors may also be serially correlated: adjacent periods can have related unexplained deviations. Standard errors based on independent errors may then be misleading. Use an inference procedure appropriate to the series and its dependence structure; do not infer precision from a large number of time points as though they were independent observations. In this tutorial’s examples, the calculations describe fitted contrasts, not statistical significance or uncertainty intervals.
Common mistake: “The treated outcome rose by 7 units at month three, so the intervention effect was 7.” This confuses a modeled change in the treated outcome with a differential change relative to the comparison and extrapolated pre-intervention gap. The corrected interpretation in the fitted example is a 7-unit-per-1,000-person departure of the treated-control gap from its pre-intervention trajectory at month three, conditional on the design and model assumptions.
Also avoid treating an insignificant pre-intervention trend test as proof that the two series would have remained comparable. A failure to detect a trend difference is not evidence that all relevant post-intervention counterfactual assumptions hold. Inspect the actual gap and residuals, state the assumptions, and interpret the estimate in the context of plausible competing explanations.
Check Your Understanding
Use the definitions, fitted model, and diagnostics above to answer the following.
- In the segmented gap model, what does \(\beta_3\) measure, and what units does it have?
- If \(\beta_2=2\) outcome units and \(\beta_3=-0.5\) outcome units per period, what is the modeled differential change at \(k=4\)?
- Why is the post-intervention treated-control gap not, by itself, the estimated intervention effect?
- What kind of pattern in pre-intervention residuals would make a linear extrapolation questionable?
- Name one design assumption, beyond linear pre-intervention fit, needed for a causal interpretation of the differential change.