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.4 |
| Depends: | R (≥ 3.5) |
| Imports: | dplyr, nlme, clubSandwich, ggplot2, stats, AICcmodavg |
| Suggests: | knitr, rmarkdown, lmtest, testthat (≥ 3.0.0) |
| Published: | 2026-07-12 |
| DOI: | 10.32614/CRAN.package.citsr |
| Author: | Hanmin Gu [aut, cre] |
| Maintainer: | Hanmin Gu <ghm21 at yonsei.ac.kr> |
| License: | MIT + file LICENSE |
| NeedsCompilation: | no |
| CRAN checks: | citsr results |
| Reference manual: | citsr.html , citsr.pdf |
| Vignettes: |
CITS Methodology Overview (source) citsr Package Examples (source, R code) |
| Package source: | citsr_0.1.4.tar.gz |
| Windows binaries: | r-devel: citsr_0.1.3.zip, r-release: citsr_0.1.3.zip, r-oldrel: citsr_0.1.3.zip |
| macOS binaries: | r-release (arm64): citsr_0.1.4.tgz, r-oldrel (arm64): citsr_0.1.4.tgz, r-release (x86_64): citsr_0.1.4.tgz, r-oldrel (x86_64): citsr_0.1.4.tgz |
| Old sources: | citsr archive |
Please use the canonical form https://CRAN.R-project.org/package=citsr to link to this page.