Controlled Interrupted Time Series Analysis and Visualization
Overview
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.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 4
- Examples that run
- 100%3 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Dependencies
Installing citsr adds 39 packages (20 with compiled code, 30 MB of source tarballs). Heaviest: ggplot2 6.0 MB, Rcpp 1.8 MB, RcppEigen 1.7 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 0.1.4Latest
- RR 4.6.0 released · 2026-04-24
- 0.1.32025-12-22
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2025-12-22
- Total releases
- 2 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.5
- Bundled data
- 2.3 KB / 1 file
- Download size
- 17 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("citsr")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.