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>.

Version: 0.1.3
Depends: R (≥ 3.5)
Imports: dplyr, nlme, clubSandwich, ggplot2, stats, AICcmodavg
Suggests: knitr, rmarkdown, lmtest, testthat (≥ 3.0.0)
Published: 2025-12-22
DOI: 10.32614/CRAN.package.citsr (may not be active yet)
Author: Hanmin Gu [aut, cre]
Maintainer: Hanmin Gu <ghm21zzang at gmail.com>
License: MIT + file LICENSE
NeedsCompilation: no
CRAN checks: citsr results

Documentation:

Reference manual: citsr.html , citsr.pdf
Vignettes: CITS Methodology Overview (source)
citsr Package Examples (source, R code)

Downloads:

Package source: citsr_0.1.3.tar.gz
Windows binaries: r-devel: not available, r-release: citsr_0.1.3.zip, r-oldrel: not available
macOS binaries: r-release (arm64): citsr_0.1.3.tgz, r-oldrel (arm64): citsr_0.1.3.tgz, r-release (x86_64): citsr_0.1.3.tgz, r-oldrel (x86_64): citsr_0.1.3.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=citsr to link to this page.