This vignette demonstrates how to use the citsr package
for conducting Controlled Interrupted Time Series (CITS) analysis. The
package provides functions for model fitting using generalized least
squares (GLS), visualizing fitted trajectories with confidence
intervals, and generating counterfactual predictions for treatment
groups.
The package includes a built-in simulated dataset named
df_cits_example.
C:368029e7d2d_examples.R
res <- cits(
data = df_cits_example,
y_col = "y",
T_col = "T",
I_col = "I",
E_col = "E"
)
summary(res$model)C:368029e7d2d_examples.R
C:368029e7d2d_examples.R
plot_cf <- plot_cits_result_cf(
res,
y_col = "y",
T_col = "T",
I_col = "I",
E_col = "E",
intervention_time = 50
)
plot_cfC:368029e7d2d_examples.R
Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.
This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.