Skip to content

Interrupted time series analysis with quantile regression: A practical guide to evaluating intervention effects across the outcome distribution

Ariel Linden

stat.ME

Abstract

Interrupted time series analysis commonly uses linear regression to evaluate intervention-associated changes in the mean, but interventions may also affect other regions of the outcome distribution. This tutorial introduces quantile regression for evaluating changes in the median and other conditional quantiles while accounting for serial dependence. Three approaches are considered: heteroskedasticity- and autocorrelation-consistent (HAC) inference, conditional Cochrane-Orcutt (CO)-type estimation, and Prais-Winsten (PW)-type estimation with autoregressive errors. Two examples using artificial data illustrate the evaluation of a prediabetes management intervention, including model specification, dependence assessment, estimation, graphical presentation, and interpretation. The first compares mean and median estimates under heavy-tailed variation; the second illustrates how examining several quantiles reveals declining variability that a central summary alone would not describe. Supporting simulations compare the approaches across series lengths, dependence structures, innovation distributions, and quantiles. PW- and CO-type estimation generally provided better confidence-interval coverage and fewer false-positive findings than HAC inference under positive autocorrelation, although none performed reliably across all strongly persistent conditions. HAC inference detected intervention effects more frequently, but much of this apparent advantage diminished after accounting for its higher false-positive rate. This tutorial provides practical guidance and illustrates the analyses using the community-contributed Stata programs qreghac and qregark.

Create a lesson

Metadata

Categories
stat.ME, stat.AP