Skip to content

citsr

0.1.4Package record

Controlled Interrupted Time Series Analysis and Visualization

0packages depend
4.1Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

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

CRAN checks
13OK
Slowest check: 1.8 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.1.4
READMENoVignettesYes · 2 · dynamicNEWSNoCitation fileNoWebsitenot declared in DESCRIPTION
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

4.1K
CRAN downloads in the past year
Rank #19,287 · ~11/day · ~342/mo
Daily download trend is not available in this view yet.
23130 days
68790 days
4.1K1 year
Compare downloads with other packages →
Also on73 r2u1 autocran

Dependencies

Declared dependencies
8 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 3.5
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (1)
Author, Maintainer since 0.1.3 (2025)
Releases (2)

Pick two releases to compare their code metrics.

  • 0.1.4Latest
    record
    2026-07-12 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 0.1.3
    record
    2025-12-22
  • R
    R 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")
Gu, H. (2026). citsr: Controlled Interrupted Time Series Analysis and Visualization (Version 0.1.4) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for citsr version 0.1.4 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy