Package: simITS 0.1.1

simITS: Analysis via Simulation of Interrupted Time Series (ITS) Data

Uses simulation to create prediction intervals for post-policy outcomes in interrupted time series (ITS) designs, following Miratrix (2020) <arxiv:2002.05746>. This package provides methods for fitting ITS models with lagged outcomes and variables to account for temporal dependencies. It then conducts inference via simulation, simulating a set of plausible counterfactual post-policy series to compare to the observed post-policy series. This package also provides methods to visualize such data, and also to incorporate seasonality models and smoothing and aggregation/summarization. This work partially funded by Arnold Ventures in collaboration with MDRC.

Authors:Luke Miratrix [aut, cre], Brit Henderson [ctb], Chloe Anderson [ctb], Arnold Ventures [fnd], MDRC [fnd]

simITS_0.1.1.tar.gz
simITS_0.1.1.zip(r-4.5)simITS_0.1.1.zip(r-4.4)simITS_0.1.1.zip(r-4.3)
simITS_0.1.1.tgz(r-4.4-any)simITS_0.1.1.tgz(r-4.3-any)
simITS_0.1.1.tar.gz(r-4.5-noble)simITS_0.1.1.tar.gz(r-4.4-noble)
simITS_0.1.1.tgz(r-4.4-emscripten)simITS_0.1.1.tgz(r-4.3-emscripten)
simITS.pdf |simITS.html
simITS/json (API)

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

Peer review:

Bug tracker:https://github.com/lmiratrix/simits/issues

Datasets:

On CRAN:

18 exports 1 stars 1.01 score 16 dependencies 125 downloads

Last updated 1 years agofrom:6a4c3cb91f. Checks:OK: 1 ERROR: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKAug 27 2024
R-4.5-winERRORAug 27 2024
R-4.5-linuxERRORAug 27 2024
R-4.4-winERRORAug 27 2024
R-4.4-macERRORAug 27 2024
R-4.3-winERRORAug 27 2024
R-4.3-macERRORAug 27 2024

Exports:add_lagged_covariatesadjust_dataaggregate_dataaggregate_simulation_resultscalculate_average_outcomecalculate_group_weightsextrapolate_modelfit_model_defaultgenerate_fake_datagenerate_fake_grouped_datamake_envelope_graphmake_fit_season_modelmake_many_predictionsmake_many_predictions_plugmake_model_smootherprocess_outcome_modelsmooth_residualssmooth_series

Dependencies:clidplyrfansigenericsgluelifecyclemagrittrpillarpkgconfigR6rlangtibbletidyselectutf8vctrswithr

Introduction to the simITS package

Rendered fromsimple_ITS_example.Rmdusingknitr::rmarkdownon Aug 27 2024.

Last update: 2023-09-01
Started: 2020-04-07