The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

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: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available

Linking:

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

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.