{
  "_id": "6a3637653efcd9bda43f8cbc",
  "Type": "Package",
  "Package": "simITS",
  "Title": "Analysis via Simulation of Interrupted Time Series (ITS) Data",
  "Version": "0.1.1",
  "Authors@R": "c(person(given = \"Luke\",\nfamily = \"Miratrix\",\nrole = c(\"aut\", \"cre\"),\nemail = \"lmiratrix@g.harvard.edu\"),\nperson(given = \"Brit\",\nfamily = \"Henderson\",\nrole = \"ctb\",\nemail = \"Brit.Henderson@mdrc.org\"),\nperson(given = \"Chloe\",\nfamily = \"Anderson\",\nrole = \"ctb\",\nemail = \"Chloe.AAnderson@mdrc.org\"),\nperson(given = \"Arnold Ventures\", role=\"fnd\"),\nperson(given = \"MDRC\", role=\"fnd\") )",
  "Description": "Uses simulation to create prediction intervals for\npost-policy outcomes in interrupted time series (ITS) designs,\nfollowing Miratrix (2020) <arXiv:2002.05746>. This package\nprovides methods for fitting ITS models with lagged outcomes\nand variables to account for temporal dependencies.  It then\nconducts inference via simulation, simulating a set of\nplausible counterfactual post-policy series to compare to the\nobserved post-policy series. This package also provides methods\nto visualize such data, and also to incorporate seasonality\nmodels and smoothing and aggregation/summarization.  This work\npartially funded by Arnold Ventures in collaboration with MDRC.",
  "License": "GPL-3",
  "VignetteBuilder": "knitr",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.2.3",
  "Repository": "https://lmiratrix.r-universe.dev",
  "Date/Publication": "2023-09-01 19:17:22 UTC",
  "RemoteUrl": "https://github.com/lmiratrix/simits",
  "RemoteRef": "HEAD",
  "RemoteSha": "6a4c3cb91f0357ca6d1ba21c5dc063566088d4b3",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-20 06:42:56 UTC",
    "User": "root"
  },
  "Author": "Luke Miratrix [aut, cre],\nBrit Henderson [ctb],\nChloe Anderson [ctb],\nArnold Ventures [fnd],\nMDRC [fnd]",
  "Maintainer": "Luke Miratrix <lmiratrix@g.harvard.edu>",
  "MD5sum": "945c26f02a75d15c2a41e688db034683",
  "_user": "lmiratrix",
  "_type": "src",
  "_file": "simITS_0.1.1.tar.gz",
  "_fileid": "48f9860a834eb5fa300d434bf620b303ad84d71de223fec883da67a85a65a533",
  "_filesize": 881661,
  "_sha256": "48f9860a834eb5fa300d434bf620b303ad84d71de223fec883da67a85a65a533",
  "_created": "2026-06-20T06:42:56.000Z",
  "_published": "2026-06-20T06:47:01.175Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 82462783048,
      "time": 143,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "7762932528"
    },
    {
      "job": 82462783052,
      "time": 158,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7762934204"
    },
    {
      "job": 82462783041,
      "time": 161,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "7762939389"
    },
    {
      "job": 82462783045,
      "time": 108,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7762933775"
    },
    {
      "job": 82462518332,
      "time": 228,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7762915452"
    },
    {
      "job": 82462783042,
      "time": 107,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7762928232"
    },
    {
      "job": 82462783062,
      "time": 93,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "7762926638"
    },
    {
      "job": 82462783063,
      "time": 92,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "7762926377"
    },
    {
      "job": 82462783064,
      "time": 90,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7762926191"
    }
  ],
  "_buildurl": "https://github.com/r-universe/lmiratrix/actions/runs/27863137623",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/lmiratrix/simits",
  "_commit": {
    "id": "6a4c3cb91f0357ca6d1ba21c5dc063566088d4b3",
    "author": "lmiratrix <luke@vzvz.org>",
    "committer": "lmiratrix <luke@vzvz.org>",
    "message": "Repaired some stuff to make vignette compile\n",
    "time": 1693595842
  },
  "_maintainer": {
    "name": "Luke Miratrix",
    "email": "lmiratrix@g.harvard.edu",
    "login": "lmiratrix",
    "description": "Statistical methodologist working to improve tools for research in the social sciences.",
    "uuid": 1175013
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "dplyr",
      "role": "Depends"
    },
    {
      "package": "R",
      "version": ">= 2.10",
      "role": "Depends"
    },
    {
      "package": "rlang",
      "role": "Depends"
    },
    {
      "package": "arm",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "plyr",
      "role": "Suggests"
    },
    {
      "package": "purrr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "stats",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 2.1.0",
      "role": "Suggests"
    },
    {
      "package": "tidyr",
      "role": "Suggests"
    }
  ],
  "_owner": "lmiratrix",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 2,
  "_contributors": [
    {
      "user": "lmiratrix",
      "count": 9,
      "uuid": 1175013
    },
    {
      "user": "vineetbio",
      "count": 8,
      "uuid": 57728768
    },
    {
      "user": "puttickmacroevolution",
      "count": 2,
      "uuid": 22197982
    }
  ],
  "_userbio": {
    "uuid": 1175013,
    "type": "user",
    "name": "lmiratrix",
    "followers": 17,
    "description": "Statistical methodologist working to improve tools for research in the social sciences."
  },
  "_downloads": {
    "count": 219,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/simITS"
  },
  "_devurl": "https://github.com/lmiratrix/simits",
  "_searchresults": 0,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/readme.html",
    "extra/readme.md",
    "extra/simITS.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/lmiratrix/simits",
  "_realowner": "lmiratrix",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2020-04-28"
    },
    {
      "version": "0.1.1",
      "date": "2020-05-20"
    }
  ],
  "_exports": [
    "add_lagged_covariates",
    "adjust_data",
    "aggregate_data",
    "aggregate_simulation_results",
    "calculate_average_outcome",
    "calculate_group_weights",
    "extrapolate_model",
    "fit_model_default",
    "generate_fake_data",
    "generate_fake_grouped_data",
    "make_envelope_graph",
    "make_fit_season_model",
    "make_many_predictions",
    "make_many_predictions_plug",
    "make_model_smoother",
    "process_outcome_model",
    "smooth_residuals",
    "smooth_series"
  ],
  "_datasets": [
    {
      "name": "meck_subgroup",
      "title": "Mecklenberg data by subgroup of charge type",
      "object": "meck_subgroup",
      "class": [
        "grouped_df",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "month",
        "n.cases",
        "n.bail",
        "pbail",
        "category"
      ],
      "rows": 144,
      "table": true,
      "tojson": true
    },
    {
      "name": "mecklenberg",
      "title": "Mecklenberg PSA Reform Data",
      "object": "mecklenberg",
      "class": [
        "spec_tbl_df",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "month",
        "karr",
        "pbail",
        "pptrel",
        "pror",
        "pb4c",
        "avg_days_initial",
        "avg_t2d",
        "pstint7",
        "pstint30"
      ],
      "rows": 54,
      "table": true,
      "tojson": true
    },
    {
      "name": "newjersey",
      "title": "New Jersey PSA Reform aggregate data",
      "object": "newjersey",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "month",
        "sin.m",
        "cos.m",
        "M12",
        "Q1",
        "Q2",
        "Q3",
        "Q4",
        "n.warrant",
        "n.summons",
        "n",
        "temperature"
      ],
      "rows": 106,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "add_lagged_covariates",
      "title": "Augment dataframe with lagged covariates",
      "topics": [
        "add_lagged_covariates"
      ]
    },
    {
      "page": "adjust_data",
      "title": "Adjust an outcome time series based on the group weights.",
      "topics": [
        "adjust_data"
      ]
    },
    {
      "page": "aggregate_data",
      "title": "Aggregate grouped data",
      "topics": [
        "aggregate_data"
      ]
    },
    {
      "page": "aggregate_simulation_results",
      "title": "Test a passed test statistic on the simulated data",
      "topics": [
        "aggregate_simulation_results"
      ]
    },
    {
      "page": "calculate_average_outcome",
      "title": "Summary function for summarize.simulation.results",
      "topics": [
        "calculate_average_outcome"
      ]
    },
    {
      "page": "calculate_group_weights",
      "title": "Calculate proportion of subgroups across time",
      "topics": [
        "calculate_group_weights"
      ]
    },
    {
      "page": "extrapolate_model",
      "title": "Extrapolate pre-policy data to post-policy era",
      "topics": [
        "extrapolate_model"
      ]
    },
    {
      "page": "fit_model_default",
      "title": "Default ITS model",
      "topics": [
        "fit_model_default"
      ]
    },
    {
      "page": "generate_fake_data",
      "title": "Make fake data for testing purposes.",
      "topics": [
        "generate_fake_data"
      ]
    },
    {
      "page": "generate_fake_grouped_data",
      "title": "A fake DGP with time varying categorical covariate for illustrating the code.",
      "topics": [
        "generate_fake_grouped_data"
      ]
    },
    {
      "page": "make_envelope_graph",
      "title": "Make envelope style graph with associated smoothed trendlines",
      "topics": [
        "make_envelope_graph"
      ]
    },
    {
      "page": "make_fit_season_model",
      "title": "Make a fit_model function that takes a seasonality component",
      "topics": [
        "make_fit_season_model"
      ]
    },
    {
      "page": "make_many_predictions",
      "title": "Generate a collection of raw counterfactual trajectories",
      "topics": [
        "make_many_predictions",
        "make_many_predictions_plug"
      ]
    },
    {
      "page": "make_model_smoother",
      "title": "Make a smoother that fits a model and then smooths residuals",
      "topics": [
        "make_model_smoother"
      ]
    },
    {
      "page": "meck_subgroup",
      "title": "Mecklenberg data by subgroup of charge type",
      "topics": [
        "meck_subgroup"
      ]
    },
    {
      "page": "mecklenberg",
      "title": "Mecklenberg PSA Reform Data",
      "topics": [
        "mecklenberg"
      ]
    },
    {
      "page": "newjersey",
      "title": "New Jersey PSA Reform aggregate data",
      "topics": [
        "newjersey"
      ]
    },
    {
      "page": "process_outcome_model",
      "title": "Generate an ITS extrapolation simulation.",
      "topics": [
        "process_outcome_model"
      ]
    },
    {
      "page": "simITS",
      "title": "'simITS' package overview",
      "topics": [
        "simITS-package",
        "simITS"
      ]
    },
    {
      "page": "smooth_residuals",
      "title": "Smooth residuals after model fit",
      "topics": [
        "smooth_residuals"
      ]
    },
    {
      "page": "smooth_series",
      "title": "Smooth a series using a static loess smoother",
      "topics": [
        "smooth_series"
      ]
    }
  ],
  "_readme": "https://github.com/lmiratrix/simits/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "dplyr",
    "generics",
    "glue",
    "lifecycle",
    "magrittr",
    "pillar",
    "pkgconfig",
    "R6",
    "rlang",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "simple_ITS_example.Rmd",
      "filename": "simple_ITS_example.html",
      "title": "Introduction to the simITS package",
      "author": "Luke Miratrix",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Basic ITS analysis",
        "Testing and Impact Intervals",
        "Generating fake data",
        "Smoothing",
        "Seasonality and covariates",
        "Smoothing and seasonality"
      ],
      "created": "2020-04-07 13:52:49",
      "modified": "2023-09-01 19:17:22",
      "commits": 2
    }
  ],
  "_score": 4.301029995663981,
  "_indexed": true,
  "_nocasepkg": "simits",
  "_universes": [
    "lmiratrix"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-06-20T06:45:14.000Z",
      "distro": "noble",
      "commit": "6a4c3cb91f0357ca6d1ba21c5dc063566088d4b3",
      "fileid": "618040c5f6b1f3147ab0e064a82307b97b394963220e872e3c5aa9b9567292f4",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/lmiratrix/actions/runs/27863137623"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-06-20T06:45:29.000Z",
      "distro": "noble",
      "commit": "6a4c3cb91f0357ca6d1ba21c5dc063566088d4b3",
      "fileid": "a2f7553a3362a5ffc8240e6466d49c99447c38efafcead475efa5816f9dd6745",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/lmiratrix/actions/runs/27863137623"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-06-20T06:46:20.000Z",
      "commit": "6a4c3cb91f0357ca6d1ba21c5dc063566088d4b3",
      "fileid": "03fc57068dbe16d9b8865d6aaf90dfa66d38d968e0a9ecae84722ef403d68dd3",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/lmiratrix/actions/runs/27863137623"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-06-20T06:45:35.000Z",
      "commit": "6a4c3cb91f0357ca6d1ba21c5dc063566088d4b3",
      "fileid": "04fd6e76d945195b9e06bdc709b3926b07ae9041c3fe85a5b32d590f41906715",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/lmiratrix/actions/runs/27863137623"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.1",
      "date": "2026-06-20T06:45:04.000Z",
      "commit": "6a4c3cb91f0357ca6d1ba21c5dc063566088d4b3",
      "fileid": "34e12f78a2add8cff52e934b1fcc5f5aaff1aecf81f47470b6a824635cf1b64f",
      "status": "success",
      "buildurl": "https://github.com/r-universe/lmiratrix/actions/runs/27863137623"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-06-20T06:44:20.000Z",
      "commit": "6a4c3cb91f0357ca6d1ba21c5dc063566088d4b3",
      "fileid": "df81b42a2cc80145dd60126b7d4fbf256ad60fb9cf62549e9de8ab9e20132701",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/lmiratrix/actions/runs/27863137623"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-06-20T06:44:16.000Z",
      "commit": "6a4c3cb91f0357ca6d1ba21c5dc063566088d4b3",
      "fileid": "9180cca18f971b2706277762477e1546ddd1f13dc7730bc42d2f2f141db98c84",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/lmiratrix/actions/runs/27863137623"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-06-20T06:44:12.000Z",
      "commit": "6a4c3cb91f0357ca6d1ba21c5dc063566088d4b3",
      "fileid": "092b592368edacb365b9aadaf5156ca55903a45f698904268aa619da72b63c58",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/lmiratrix/actions/runs/27863137623"
    }
  ]
}