Controlled Interrupted Time Series Analysis and Visualization

Implements controlled interrupted time series (CITS) analysis for evaluating interventions in comparative time-series data. The package provides tools for preparing panel time-series datasets, fitting models using generalized least squares (GLS) with optional autoregressive–moving-average (ARMA) error structures, and computing fitted values and robust standard errors using cluster-robust variance estimators (CR2). Visualization functions enable clear presentation of estimated effects and counterfactual trajectories following interventions. Background on methods for causal inference in interrupted time series can be found in Linden and Adams (2011) and Lopez Bernal, Cummins, and Gasparrini (2018) .


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("citsr")

0.1.4 by Hanmin Gu, 3 months ago


Browse source code at https://github.com/cran/citsr


Authors: Hanmin Gu [aut, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports dplyr, nlme, clubSandwich, ggplot2, stats, AICcmodavg

Suggests knitr, rmarkdown, lmtest, testthat


See at CRAN