Robust Interrupted Time Series Analysis

Statistics
Introduced by
Bernal, Cummins & Gasparrini; Linden (robust extensions)
Year
2010s
Type
Quasi-experimental segmented regression with robust inference
Family
Quasi-experimental / causal inference

What does it do?

Robust Interrupted Time Series Analysis estimates the effect of a policy or intervention on an aggregate outcome over time.

It uses segmented regression with a known interruption date and robust inference, such as heteroskedasticity-consistent standard errors or outlier-resistant estimators. It is commonly used in health services research and public-health evaluation when the series may contain influential observations or non-constant variance. The method keeps the causal design of standard interrupted time series and changes only how influence and uncertainty are estimated.

The intuition behind the method

Standard Interrupted Time Series (ITS) fits one regression line before an intervention and another after it, and reads the effect from the immediate jump in level and the change in slope at the interruption point. Ordinary least squares assumes constant error variance and no unduly influential points. When a few time points are extreme or the variance changes over time, the coefficients can be pulled toward those points, and conventional standard errors can be too small or too large. Robust ITS keeps the same model and causal logic but estimates uncertainty in a way that remains valid under these departures, for example with sandwich (HC) standard errors, or it down-weights influential observations with M-estimation. It cannot repair a wrongly specified trend or an unmodelled event that coincides with the intervention.

History

Interrupted time series (ITS) analysis is increasingly used to evaluate interventions at a clearly defined point in time, ranging from clinical therapy to national public-health legislation. Bernal, Cummins and Gasparrini's tutorial sets out a robust approach to ITS using segmented regression, beginning with a priori specification of the impact model. It identifies the main methodological issues in ITS analysis: over-dispersion of time-series data, autocorrelation, adjustment for seasonal trends, and control for time-varying confounders. The robust variants described on this page address the inferential side of these issues, principally the influence of unusual observations and non-constant variance. Autocorrelation and seasonality require explicit modelling, as noted above.

When to use it

Choose Robust ITS when you have an aggregate series of repeated measures (for example monthly or quarterly rates) with a clearly dated intervention, a segment on each side of the interruption long enough to fit the model, and a concern that outliers or non-constant variance would distort standard ITS. As rules of thumb, aim for at least about 8 observations per segment, with 12–20 per segment preferred for stable sandwich estimates. Below about 6 per segment, neither robust nor standard ITS is reliable, and single-case design methods should be considered. These thresholds are practical guidelines rather than cut-offs established in the cited sources, so the sensitivity of the estimates should be checked in short series. For seasonal outcomes, add seasonal terms such as month or quarter indicators or harmonic terms before interpreting level and slope changes; Bernal, Cummins and Gasparrini list seasonal adjustment among the core issues in ITS analysis. The method suits administrative data prone to recording anomalies or pilot periods that produce early volatility. Do not use it as a fix for strong autocorrelation; an explicit ARIMA-type model is more appropriate there. Robust standard errors also do not model conditional volatility such as volatility clustering, which requires a conditional-variance model. If other events coincide with the intervention, add a comparison series or choose a design that can address them.

Limitations and considerations

  • Robust standard errors correct inference but not bias: if the linear pre- and post-segment mean is wrong, or the true break is not at the assumed date, the estimates remain biased.
  • Sandwich estimators are unreliable with very short segments; with few points on either side of the interruption, their coverage can be worse than conventional OLS intervals.
  • Heteroskedasticity-robust errors do not handle strong autocorrelation well. The Newey-West lag choice matters, and a severe autoregressive structure needs explicit time-series modelling.
  • The method assumes a single, known interruption point. Gradual rollouts or several interventions require extensions such as multiple-breakpoint or dynamic ITS models.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Keeps the segmented-regression logic of standard ITS, so the level and slope parameters retain their interpretation while inference is more robust to heteroskedastic errors.
  • Heteroskedasticity-consistent (sandwich) standard errors rely on the residuals rather than a specified error distribution, so they do not require normal errors.
  • M-estimation limits the influence that a few extreme time points can have on the level-change and slope-change estimates.
  • The same model extends to controlled designs with a concurrent comparison series and to panel data with cluster-robust errors.
  • Standard statistical packages support the underlying segmented regression and robust covariance options, so the extension needs little additional software effort.

Applications

  • Evaluating the effect of a clinical guideline change on monthly hospital admission rates when the series contains seasonal outliers.
  • Assessing the impact of a public-health campaign on weekly disease incidence with heteroskedastic reporting variance.
  • Measuring the effect of a policy reform on quarterly economic indicators using administrative data prone to data-quality spikes.
  • Comparing pre- and post-intervention trends in educational outcomes across school cohorts with a controlled comparison series.

How it works

How it works

1

The outcome at time t is modelled as a segmented regression with four terms: a baseline level (intercept β₀), a pre-intervention time trend (β₁), a level change at the interruption (β₂, where the dummy D_t equals 1 from the intervention time T₀ onwards), and a slope change (β₃) multiplying the time elapsed since the intervention. The model therefore captures both an immediate step and any change in trend.

Formula
Y_t = \beta_0 + \beta_1 t + \beta_2 D_t + \beta_3 (t - T_0)D_t + \varepsilon_t
2

After fitting the model by least squares, the covariance of the coefficients is replaced by the heteroskedasticity-consistent (sandwich) estimator in the formula above. That formula is the HC0 form, which uses the squared residuals and does not assume a particular error distribution. HC3 is a common variant that divides each squared residual by (1 − h_t)², where h_t is the leverage of time point t; this small-sample adjustment is often preferred when the series is short. Where residuals are also autocorrelated, Newey-West (HAC) estimates are a common alternative; they add lagged cross-products that the formula above does not show. M-estimation or MM-estimation is a different route: it iteratively down-weights time points with high leverage or large residuals, so the coefficient estimates themselves are less affected by outliers.

Formula
\hat{V}_{\text{robust}} = (X'X)^{-1}\left(\sum_t \hat{\varepsilon}_t^2 x_t x_t'\right)(X'X)^{-1}
3

β₂ is the estimated immediate change in the outcome level at the intervention point, relative to the trend extrapolated from the pre-period. A positive value indicates an upward jump and a negative value a drop. Robust inference is meant to keep this estimate from being driven by one or two anomalous time points, and it should be checked by removing or down-weighting such points.

4

β₃ is the change in the trend slope after the intervention relative to the pre-period slope. A clear β₃ indicates that the intervention altered the trajectory of the outcome, not only its level, which can be the more policy-relevant result.

5

Residual checks include tests for remaining autocorrelation (Durbin-Watson or Ljung-Box), heteroskedasticity (Breusch-Pagan), and influence measures (Cook's D, DFFITS) that locate points still exerting strong leverage. Conclusions are then compared with alternative estimators, such as generalised least squares or an ARIMA-corrected model, to check that the level and slope estimates are stable.

Common pitfalls

  • Reporting robust standard errors without checking that the mean model (linearity, single breakpoint) fits the data. Robust SEs do not fix a misspecified conditional mean.
  • Choosing the number of Newey-West lags arbitrarily. A widely used default rule is floor(4(n/100)^(2/9)); whichever lag is chosen, report sensitivity to the lag choice.
  • Conflating level change (β₂) and slope change (β₃). A non-significant level change with a significant slope change still indicates an intervention effect, just a gradual one.
  • Applying robust ITS to a series too short to estimate the four segmented-regression parameters reliably, where both OLS and robust inference are weak.
  • Omitting a comparison series when secular trends or concurrent events could explain the change. Robust errors cannot separate the intervention from a simultaneous shock.
  • Interpreting level or slope changes in a seasonal outcome without seasonal terms in the model, so that a regular seasonal peak or trough near the interruption is mistaken for an intervention effect. Robust errors do not remove seasonal structure from the mean.

Frequently asked questions

How is Robust ITS different from standard ITS?

The causal model and identification logic are identical. The difference is purely statistical: Robust ITS replaces OLS standard errors with heteroskedasticity-consistent (sandwich) or outlier-downweighting (M-estimation) alternatives, so inference remains valid when the error variance is non-constant or a few time points are anomalous.

When should I use Newey-West HAC versus M-estimation?

Use Newey-West (HAC) when you suspect heteroskedasticity and mild autocorrelation but the data have no severe outliers. Use M-estimation (or MM-estimation) when you have clearly anomalous time points that would exert undue leverage on OLS. You may apply both in a sensitivity analysis.

How many time points do I need?

As a rule of thumb, aim for at least 8 observations per segment (before and after), with 12–20 per segment preferred for stable sandwich estimates. With fewer than 6 per segment, neither standard nor robust ITS is reliable; consider single-case design methods instead.

Does robust ITS require a comparison group?

No, a single-group design is valid if no major concurrent events coincide with the intervention. However, adding a concurrent control series (controlled ITS) greatly strengthens causal claims, because it helps address co-occurring events that robust standard errors alone cannot separate from the intervention.

Can I apply robust ITS to panel data?

Yes — panel (multi-unit) ITS with cluster-robust or unit-fixed-effects robust standard errors is a direct extension and is often preferable for policy evaluations that cover multiple regions or facilities.

Related methods

Sources

  1. Bernal, J. L., Cummins, S., & Gasparrini, A. (2017). Interrupted time series regression for the evaluation of public health interventions: a tutorial. International Journal of Epidemiology, 46(1), 348-355.

    Open DOI reference
  2. Linden, A. (2015). Conducting interrupted time-series analysis for single- and multiple-group comparisons. Stata Journal, 15(2), 480-500.

    Open publication reference