R and STATA code for: "Interrupted time series regression for the evaluation of public health interventions: a tutorial"