← All resources

Interrupted Time Series Analysis: A Practical Guide for Researchers

15 min read
Interrupted Time Series Analysis: A Practical Guide for Researchers

Interrupted Time Series Analysis: A Practical Guide for Researchers

Researcher reviews an interrupted time series plot

Interrupted time series (ITS) analysis is a quasi-experimental design that tests whether an intervention changed an outcome, by comparing the outcome’s trajectory before and after a known point in time within a single population. Instead of two before-and-after snapshots, you model many repeated measurements, so the underlying trend is accounted for. The standard tool is segmented regression, which estimates an immediate change in level and a change in slope. This guide covers when ITS is appropriate, how to specify the model, which assumptions to check, and how to report the result.

Plotstudio
Make Your ITS Analysis Reproducible
PlotStudio AI supports R and Python workflows with reviewable analytical plans, executed code, and findings preserved for inspection.
Visit PlotStudio AI

TL;DR

  • ITS compares an outcome’s trend before and after an intervention at a clear time point, using repeated observations in one population, with or without a control series.
  • The core model is segmented regression with four terms: baseline level, pre-intervention slope, level change, and slope change.
  • Specify the impact model (level, slope, both, or lagged) before you look at the outcome data, and check autocorrelation and seasonality before you trust the standard errors.
  • Report both the level change and the slope change with 95% confidence intervals, and show the counterfactual on the graph.
  • PlotStudio AI adds agentic analytics for researchers on top of R and Python: a reviewable plan, executed code and a documented trail for the whole ITS workflow.

Table of Contents

What interrupted time series analysis is

ITS is a design for evaluating interventions introduced at a clearly defined point in time, such as a new clinical guideline, a policy change, or a service redesign. Lopez Bernal, Cummins and Gasparrini (2016) describe it as a valuable design for population-level health interventions, using segmented regression to model the pre-intervention trend and the change after the intervention.

What separates it from a simple pre-post comparison is the number of observations. A pre-post design has poor internal validity because it cannot exclude an underlying trend as the cause of any change. ITS uses multiple observations before and after the intervention, so the trend can be modeled and projected forward as a counterfactual. Research on controlled ITS studies also notes that because the comparison is within one population, selection bias and confounding from between-group differences are limited.

The same source is clear about the limit: the basic ITS design cannot exclude confounding from co-interventions or other events occurring around the time of the intervention. That limit shapes every design decision below.

What interrupted time series analysis is

ITS versus regression discontinuity

People often ask whether ITS is the same as regression discontinuity. They are close relatives. The WHO guidance on research methods describes ITS as a specific application of regression discontinuity in which the threshold is the time the intervention came into effect. Regression discontinuity estimates a local average treatment effect near the threshold, while ITS is most relevant when an intervention’s effect is sudden rather than gradual.

The practical difference is in what the threshold is. In regression discontinuity design the threshold is usually a score or cutoff on a running variable, and units on either side are compared. In ITS the running variable is time, and you model the trend on each side. If your threshold is a test score or an eligibility cutoff, see our guide to regression discontinuity design.

When ITS is the right design

ITS fits when three conditions hold:

  1. A clear break point. The pre- and post-intervention periods can be separated cleanly. UK government guidance says you need an intervention that can quickly produce a measurable effect at a specific time point.
  2. A short-term outcome. The outcome should be expected to change quickly after the intervention or after a clearly defined lag, per Lopez Bernal et al..
  3. Sequential measures before and after. Routine administrative or surveillance data are often the best fit, because the design needs a relatively long series.

It is a poor fit when the intervention rolls out gradually or at several time points, when trends cannot be made linear, or when the population itself changes over time. A 2015 methods article lists these as situations where ITS is not appropriate, while noting that many can be handled through modeling if the relevant information is known.

How many time points do you need?

There is no single fixed answer, and you should be skeptical of anyone who gives one. Lopez Bernal et al. state there are no fixed limits, because power depends on the distribution of data points, variability, effect strength and confounding.

The published rules of thumb differ:

Source Suggested minimum per segment
Fretheim et al., as summarized by van Leeuwen et al. (2024) 6 or more
Penfold and Zhang (2013), as summarized in a SAS Global Forum paper 8
Wagner et al. (2002), same paper 12, mainly to evaluate seasonal variation rather than for power
Li et al. (2021) 12 before and 12 after for segmented regression

Two practical points follow. First, more points help most when the series is noisy or autocorrelated. Second, if you expect a seasonal pattern, you need enough cycles to estimate it. Van Leeuwen et al. also report that detecting a slope change can require fewer time points than detecting a step change in their simulated scenario, so the effect you care about matters.

Specifying the segmented regression model

The standard model is:

Yt = β0 + β1T + β2Xt + β3TXt

As Lopez Bernal et al. define the terms:

  • Yt is the outcome at time t.
  • T is the time elapsed since the start of the study.
  • Xt is a dummy variable coded 0 before the intervention and 1 after.
  • β0 is the baseline level at T = 0.
  • β1 is the pre-intervention trend, the change in outcome per time unit.
  • β2 is the level change following the intervention.
  • β3 is the slope change, estimated through the interaction between time and the intervention indicator.

You can drop the β3 term for a level-change-only model or the β2 term for a slope-change-only model. Lagged effects need a slightly more complex specification, for example by excluding a transition window or coding a ramp.

Decide the impact model before you see the results

This is the step most often skipped. The impact model, meaning whether you expect a level change, a slope change, both, or a lagged effect, should be proposed a priori from the literature and the mechanism of the intervention. Lopez Bernal et al. discourage choosing the model by looking at the outcome data, because it raises the chance of detecting artefactual effects. A review of public health ITS studies, summarized by Jiang et al. (2024), likewise concluded that pre-specifying statistical models matters.

In practice, write the model into your protocol or analysis plan: the break point, the expected form of the effect, any lag, the handling of seasonality, and the autocorrelation checks you will run.

A worked example (illustrative)

Suppose a hospital introduces a new sepsis screening pathway in month 25 of a 48-month series of monthly 30-day readmission rates. This is a hypothetical setup to show the logic, not real data.

  • Code T as 1 to 48 and Xt as 0 for months 1 to 24 and 1 for months 25 to 48.
  • Fit the four-term model. If β1 is small and stable, β2 is negative, and β3 is near zero, the pathway is associated with an immediate drop that then runs parallel to the old trend.
  • If β2 is near zero but β3 is negative, the effect is gradual: readmissions decline faster than before, but not at once.

Which of these you hypothesized should be written down before fitting.

Assumptions and threats to validity

Segmented regression looks simple, but its inference depends on assumptions that routine time series data often violate.

Autocorrelation, non-stationarity and seasonality

Jiang et al. (2024) name three features of time series data that create analytical challenges: autocorrelation (observations correlated with earlier ones), non-stationarity (variance changing over time) and seasonality (variation at regular intervals, such as month or weekday).

Three common challenges in time series data

Ignoring autocorrelation usually makes standard errors too small, so effects look more certain than they are. Check residual autocorrelation with plots of the autocorrelation and partial autocorrelation functions and a formal test such as Durbin-Watson or Ledolter-style Q tests for residuals. Our primer on autocorrelation explains the diagnostics in detail.

For seasonality, options include adding month indicators or Fourier terms, or using a seasonal ARIMA model. Li et al. suggest considering SARIMA when seasonality or a cyclic pattern is expected. You can read more in our overview of time series analysis methods and our pages on seasonality detection and ARIMA forecasting.

Which estimation method?

In a review cited by Jiang et al., segmented regression was the most common analysis method, used in 78% of 115 ITS studies. In their simulation comparing methods, ARIMA was more consistent across effect sizes and with or without seasonality, whereas generalized additive models were more robust to misspecification. The method that works best depends on your series, so report your choice and the reason for it.

Concurrent events and the case for a control series

The biggest threat is something else happening at the same time. Both ITS and regression discontinuity in time assume no other major simultaneous changes and no time-varying confounders.

Adding a control series, an outcome that should not be affected by the intervention, can help. Lopez Bernal et al. (2018) caution that this needs care: consider in advance which confounding events might exist, and whether a given control excludes them or introduces new bias. The same logic applies in laboratory work, where well-chosen comparison groups are what make an effect interpretable; this overview of why control groups matter in laboratory studies covers the reasoning.

A short checklist for confounding events:

  • List every policy, coding change, staffing change or external shock near the break point.
  • Check whether measurement or case definitions changed at the same time.
  • Run the model with a placebo break point in the pre-period to see whether a similar “effect” appears.
  • Examine a control outcome or control population if one is available.

Short series: what to do

If your series is short, traditional time series techniques may be out of reach. The CRAN package its.analysis is designed for such cases. It fits an ANCOVA model with a lagged dependent variable, runs post-estimation checks, and by default uses 1,000 bootstrap replications to produce 90% confidence intervals. Its documentation suggests 7 to 10 cases per interruption-variable level for adequate power.

Treat short-series results cautiously and say so in your limitations. Sensitivity analyses, such as varying the lag window or the break point, help show how stable the finding is.

Interpreting, graphing and reporting results

Report the effect along two dimensions, as the Cochrane EPOC group recommends:

  • Change in level: the immediate effect, the difference between the fitted first post-intervention value and the value predicted from the pre-intervention slope alone.
  • Change in slope: the change in trend, reflecting the longer-term effect.

Because slope changes are hard to interpret, EPOC suggests also presenting effects at fixed horizons, such as half a year, one year or two years after the intervention, as the difference between the fitted value and the counterfactual. Include 95% confidence intervals for each estimate.

For the graph, plot the observed points, the fitted segments, and the projected pre-intervention trend as a dashed counterfactual line. Turner et al. is not the source for this; for graph design see the guidance on creating effective ITS graphs only if you have confirmed its contents, otherwise follow the principles above.

Reporting quality is a real problem. A survey of 153 ITS studies in drug utilization research found only 39.2% (60 of 153) reported the specific regression model and interpreted the coefficients, and 15 studies misinterpreted the level change because of how time was parameterized. State how you coded time, so a reviewer can see what β2 refers to.

Where PlotStudio AI fits in an ITS workflow

Statistical computing for ITS lives in R, Python, Stata, SPSS, SAS and notebooks, and it should stay there. PlotStudio AI does not replace them. It adds an agentic layer: agents plan the investigation, write and run real code, inspect intermediate results and document the analysis.

For an ITS question, that can look like this:

  1. You connect your tabular data and state the objective, for example the effect of a policy at a given month on a monthly outcome.
  2. In Plan Mode you review and modify the proposed approach before anything runs: the impact model, the handling of seasonality, the autocorrelation checks and the estimation method.
  3. The agents run the code in Python or R, inspect residual diagnostics and iterate.
  4. The methodology, code, statistics and charts are kept as a searchable Analysis Page and can be exported as a notebook or PDF report, so a supervisor or reviewer can see how each number was produced.

That last step addresses the reviewer who asks you to justify your method and the supervisor who cannot reproduce your figures. Analyses can also run locally on your machine, which matters when the data are sensitive. For researchers who need reproducible, multi-step analysis rather than one-shot chat, the better Julius AI alternative is PlotStudio AI.

Our perspective

Most ITS errors are not arithmetic mistakes. They are decisions made silently: where the break point sits, whether a lag was allowed, why seasonality was handled one way, which diagnostic was skipped.

A chat tool that returns one chart and one p-value hides those decisions. That is why we built PlotStudio AI as agentic analytics for researchers: a system that plans a multi-step analysis, lets you review the plan, runs real code locally, inspects intermediate results and keeps the methodology, code and outputs available for review.

We see it as an emerging layer in the modern research toolkit, next to RStudio, R, Python, Stata, SPSS, SAS and Jupyter. Those tools provide the statistical computing. PlotStudio AI adds an agent that can plan, execute, inspect, validate and document the complete analysis, so your segmented regression can be defended in a viva, a review response or a supervision meeting.

Aymen

Run your ITS analysis with PlotStudio AI

If you are working on an ITS thesis chapter or a paper, you can start with the free trial and see how Plan Mode handles your series. The Bring Your Own Key plan is listed at $39.99 per month, and an annual Bring Your Own Key plan is listed at $399.90 per year on the academic page. Managed Credits is $69.99 per month. Compare the options on the pricing page.

Plotstudio

You can also learn more about PlotStudio AI and how it supports reproducible research workflows.

FAQ

Is interrupted time series the same as regression discontinuity?

Not exactly. The WHO describes ITS as a specific application of regression discontinuity where the threshold is the time the intervention took effect. Regression discontinuity typically compares units on either side of a score cutoff, while ITS models trends in one population before and after a point in time.

How many data points do I need for ITS?

There is no fixed rule. Published minimums range from six to twelve per segment, and power depends on variability, effect size and autocorrelation. Twelve before and twelve after is a common recommendation, and more helps when the series is seasonal or noisy.

How do I interpret an interrupted time series?

Look at two estimates: the level change (the immediate shift at the break point) and the slope change (the difference in trend afterward). Compare both against the projected pre-intervention trend, and report 95% confidence intervals. Also state how time was coded, since it determines what the level change means.

What if my data are autocorrelated or seasonal?

Test the residuals for autocorrelation and adjust the model, using seasonal terms or a model such as SARIMA. Ignoring autocorrelation tends to understate standard errors. Report the diagnostics you ran and how they changed your model.

Sources