Crandore Hub

citsr

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) <doi:10.1111/j.1365-2753.2010.01504.x> and Lopez Bernal, Cummins, and Gasparrini (2018) <doi:10.1093/ije/dyy135>.

Versions across snapshots

VersionRepositoryFileSize
0.1.3 2026-04-09 windows/windows R-4.5 citsr_0.1.3.zip 49.7 KiB

Dependencies (latest)

Imports

Suggests