A tutorial on the use of interrupted time series (ITS) analysis in public health and epidemiological research. The code follows the examples illustrated in the following article that described the most common steps in the application of the ITS design:
Lopez Bernal J, Cummins S, Gasparrini. Interrupted time series regression for the evaluation of public health interventions: a tutorial. International Journal of Epidemiology. 2017;46(1):348-355. [freely available here]
A correction has been issues [freely available here], including changes to the original model definition and R code.
The material:
- sicily.csv stores the dataset used in the illustrative examples
- Rcode.R is the R code the reproduce the examples
- Statacode.do is the Stata code to reproduce the examples
Download as a ZIP file using the green button Clone or download above