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.7)simITS_0.1.1.zip(r-4.6)simITS_0.1.1.zip(r-4.5)
simITS_0.1.1.tgz(r-4.6-any)simITS_0.1.1.tgz(r-4.5-any)
simITS_0.1.1.tar.gz(r-4.7-any)simITS_0.1.1.tar.gz(r-4.6-any)
simITS_0.1.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
simITS/json (API)

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

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

Datasets:

On CRAN:

Conda:

4.30 score 2 stars 178 downloads 18 exports 15 dependencies

Last updated from:6a4c3cb91f. Checks:7 ERROR, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64ERROR144
source / vignettesOK198
linux-release-x86_64ERROR122
macos-release-arm64ERROR154
macos-oldrel-arm64ERROR142
windows-develERROR89
windows-releaseERROR89
windows-oldrelERROR89
wasm-releaseOK109

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:clidplyrgenericsgluelifecyclemagrittrpillarpkgconfigR6rlangtibbletidyselectutf8vctrswithr

Introduction to the simITS package

Rendered fromsimple_ITS_example.Rmdusingknitr::rmarkdownon May 21 2026.

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