{
  "_id": "6afc2e74117874b00e23b460",
  "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-11-17 10:13:05 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>",
  "_user": "lmiratrix",
  "_type": "src",
  "_file": "simITS_0.1.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/bec49b9130ce5d273ef7d0a56b7d19c7bd7a0666208082d89d331ce6f4026501",
  "_filesize": 896843,
  "_sha256": "bec49b9130ce5d273ef7d0a56b7d19c7bd7a0666208082d89d331ce6f4026501",
  "_expires": "2027-02-25T10:37:38.000Z",
  "_created": "2026-11-17T10:13:05.000Z",
  "_published": "2026-11-20T02:20:44.622Z",
  "_upstream": "https://github.com/lmiratrix/simits",
  "_status": "success",
  "_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
  },
  "_jobs": [
    {
      "job": 133968730347,
      "time": 121,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "14318877504"
    },
    {
      "job": 133968730302,
      "time": 110,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "ERROR",
      "artifact": "14318957009"
    },
    {
      "job": 133968730417,
      "time": 194,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "14319448222"
    },
    {
      "job": 133968730485,
      "time": 148,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "ERROR",
      "artifact": "14319753289"
    },
    {
      "job": 133967066837,
      "time": 183,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14318334022"
    },
    {
      "job": 133968730393,
      "time": 106,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "14317869491"
    },
    {
      "job": 133968730371,
      "time": 73,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "14319316395"
    },
    {
      "job": 133968730453,
      "time": 79,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "14319126808"
    },
    {
      "job": 133968730476,
      "time": 79,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "ERROR",
      "artifact": "14319465513"
    }
  ],
  "_buildurl": "https://github.com/r-universe/lmiratrix/actions/runs/44062259030",
  "_commit": {
    "id": "6a4c3cb91f0357ca6d1ba21c5dc063566088d4b3",
    "author": "lmiratrix <luke@vzvz.org>",
    "committer": "lmiratrix <luke@vzvz.org>",
    "message": "Repaired some stuff to make vignette compile\n",
    "time": 1693595842
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_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": 18,
    "description": "Statistical methodologist working to improve tools for research in the social sciences."
  },
  "_downloads": {
    "count": 352,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/simITS"
  },
  "_devurl": "https://github.com/lmiratrix/simits",
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/readme.html",
    "extra/readme.md",
    "extra/simITS.html"
  ],
  "_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-11-17T10:14:56.000Z",
      "distro": "resolute",
      "commit": "6a4c3cb91f0357ca6d1ba21c5dc063566088d4b3",
      "fileid": "https://r2.ropensci.org/e90f4f860f8047efef1b3f3ced9df9624167860c64b5dbe0a381b0fb94a3ab7e",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/lmiratrix/actions/runs/44062259030"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-11-17T10:14:49.000Z",
      "distro": "resolute",
      "commit": "6a4c3cb91f0357ca6d1ba21c5dc063566088d4b3",
      "fileid": "https://r2.ropensci.org/f6c2983836ebbea4b0824775288055dd30a32941532492ddf7d86d1814b753bd",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/lmiratrix/actions/runs/44062259030"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-11-17T10:26:01.000Z",
      "commit": "6a4c3cb91f0357ca6d1ba21c5dc063566088d4b3",
      "fileid": "https://r2.ropensci.org/f32661bf202dc6603eb4ef217cce59c495975f44d588276e679969d42233e8e5",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/lmiratrix/actions/runs/44062259030"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-11-17T10:36:43.000Z",
      "commit": "6a4c3cb91f0357ca6d1ba21c5dc063566088d4b3",
      "fileid": "https://r2.ropensci.org/9ef6e646c3c813245eef1d5f68ba315b63719dbbf35303164a7476b88e5f4f1f",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/lmiratrix/actions/runs/44062259030"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.1",
      "date": "2026-11-17T10:15:07.000Z",
      "commit": "6a4c3cb91f0357ca6d1ba21c5dc063566088d4b3",
      "fileid": "https://r2.ropensci.org/e72bdf75b3d152cc36263ac87acd9335f9ae4e118181c42999b144488f831a39",
      "status": "success",
      "buildurl": "https://github.com/r-universe/lmiratrix/actions/runs/44062259030"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-11-17T10:14:11.000Z",
      "commit": "6a4c3cb91f0357ca6d1ba21c5dc063566088d4b3",
      "fileid": "https://r2.ropensci.org/d08bf0284a234b655860582681c2f8f8fae240e7e20daf0294896303e568eec7",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/lmiratrix/actions/runs/44062259030"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-11-17T10:14:12.000Z",
      "commit": "6a4c3cb91f0357ca6d1ba21c5dc063566088d4b3",
      "fileid": "https://r2.ropensci.org/c8049d8e0ff1006faa562d7a9e07e6855426e6c733bd7385f8376d8c579b2e0a",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/lmiratrix/actions/runs/44062259030"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-11-17T10:14:16.000Z",
      "commit": "6a4c3cb91f0357ca6d1ba21c5dc063566088d4b3",
      "fileid": "https://r2.ropensci.org/404bfd339c8450f6fa991222be0da8d9dba5c639b63919a99f3ea01568cfeccc",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/lmiratrix/actions/runs/44062259030"
    }
  ]
}