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

Package details

AuthorHanmin Gu [aut, cre]
MaintainerHanmin Gu <ghm21@yonsei.ac.kr>
LicenseMIT + file LICENSE
Version0.1.4
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("citsr")

Try the citsr package in your browser

Any scripts or data that you put into this service are public.

citsr documentation built on July 12, 2026, 5:07 p.m.