Package: citsr 0.1.3

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

Authors:Hanmin Gu [aut, cre]

citsr_0.1.3.tar.gz
citsr_0.1.3.zip(r-4.7)citsr_0.1.3.zip(r-4.6)citsr_0.1.3.zip(r-4.5)
citsr_0.1.3.tgz(r-4.6-any)citsr_0.1.3.tgz(r-4.5-any)
citsr_0.1.3.tar.gz(r-4.7-any)citsr_0.1.3.tar.gz(r-4.6-any)
citsr_0.1.3.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION
card.svg |card.png
citsr/json (API)

# Install 'citsr' in R:
install.packages('citsr', repos = c('https://hmgu-urban.r-universe.dev', 'https://cloud.r-project.org'))
Datasets:

On CRAN:

Conda:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

2.30 score 1 stars 524 downloads 3 exports 44 dependencies

Last updated from:22f12e59cd. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK150
source / vignettesOK213
linux-release-x86_64OK140
macos-release-arm64OK134
macos-oldrel-arm64OK134
windows-develOK115
windows-releaseOK93
windows-oldrelOK123
wasm-releaseOK114

Exports:citsplot_cits_resultplot_cits_result_cf

Dependencies:AICcmodavgcliclubSandwichcpp11dplyrfarvergenericsggplot2gluegtableisobandlabelinglatticelifecyclemagrittrMASSMatrixnlmepillarpkgconfigR6rbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRdpackreformulasrlangS7sandwichscalessurvivaltibbletidyselectTMBunmarkedutf8vctrsVGAMviridisLitewithrxtablezoo

Controlled Interrupted Time Series (CITS) Methodology
Overview | 1. Purpose | 2. Data Structure | 3. Basic Model | ARMA Handling | 4. Analysis Workflow | 5. Advantages | 6. Considerations | References

Last update: 2025-12-22
Started: 2025-12-22

citsr Package Examples
Overview | 1. Example Data | 2. Fit CITS Model | 3. Visualize Fitted Values with 95% Confidence Intervals | 4. Visualize Counterfactual Trajectory for Treatment Group

Last update: 2025-12-22
Started: 2025-12-22