Package: citsr
Title: Controlled Interrupted Time Series Analysis and Visualization
Version: 0.1.3
Authors@R: 
    person("Hanmin", "Gu", email = "ghm21zzang@gmail.com", role = c("aut", "cre"))
Description: 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>.
License: MIT + file LICENSE
Imports: dplyr, nlme, clubSandwich, ggplot2, stats, AICcmodavg
Suggests: knitr, rmarkdown, lmtest, testthat (>= 3.0.0)
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.3.2
Depends: R (>= 3.5)
VignetteBuilder: knitr
Config/testthat/edition: 3
NeedsCompilation: no
Packaged: 2025-12-17 07:50:07 UTC; Gu
Author: Hanmin Gu [aut, cre]
Maintainer: Hanmin Gu <ghm21zzang@gmail.com>
Repository: CRAN
Date/Publication: 2025-12-22 17:20:07 UTC
Built: R 4.6.0; ; 2026-04-29 00:41:32 UTC; unix
