{
  "_id": "6aace5f73d719c1f84072b99",
  "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-09-18 06:55:16 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/b17a1c23dda2f9292469d27f9c4e4351f08281ca1ca5f4f1d7bb538b5e0f4189",
  "_filesize": 890185,
  "_sha256": "b17a1c23dda2f9292469d27f9c4e4351f08281ca1ca5f4f1d7bb538b5e0f4189",
  "_expires": "2026-12-27T07:19:16.000Z",
  "_created": "2026-09-18T06:55:16.000Z",
  "_published": "2026-09-18T07:19:18.897Z",
  "_jobs": [
    {
      "job": 105510819644,
      "time": 156,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "10535817904"
    },
    {
      "job": 105510819570,
      "time": 141,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "10534899133"
    },
    {
      "job": 105510819546,
      "time": 128,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "10536316375"
    },
    {
      "job": 105510819556,
      "time": 161,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "10535559102"
    },
    {
      "job": 105509920376,
      "time": 230,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10535701706"
    },
    {
      "job": 105510819611,
      "time": 121,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "10535347113"
    },
    {
      "job": 105510819654,
      "time": 92,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "10535263408"
    },
    {
      "job": 105510819705,
      "time": 62,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "10535987341"
    },
    {
      "job": 105510819795,
      "time": 76,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "10535671764"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/lmiratrix/actions/runs/35316715380",
  "_status": "success",
  "_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
  },
  "_distro": "resolute",
  "_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": 230,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/simITS"
  },
  "_devurl": "https://github.com/lmiratrix/simits",
  "_searchresults": 0,
  "_rbuild": "4.6.1",
  "_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-09-18T06:57:42.000Z",
      "distro": "resolute",
      "commit": "6a4c3cb91f0357ca6d1ba21c5dc063566088d4b3",
      "fileid": "https://r2.ropensci.org/5209a204ef0d0427d26e6823fa024598a29e1a2bfddd274474be9e522060df54",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/lmiratrix/actions/runs/35316715380"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-09-18T06:57:36.000Z",
      "distro": "resolute",
      "commit": "6a4c3cb91f0357ca6d1ba21c5dc063566088d4b3",
      "fileid": "https://r2.ropensci.org/5c9340a8677567e6d9f11a5dd754f681453363bedd181348247572c9de8f2bbf",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/lmiratrix/actions/runs/35316715380"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-09-18T07:18:19.000Z",
      "commit": "6a4c3cb91f0357ca6d1ba21c5dc063566088d4b3",
      "fileid": "https://r2.ropensci.org/e6a32f2b93b5be36e3ea6bb7be090367e77470b0cbe8810f0395beb0cdc1687a",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/lmiratrix/actions/runs/35316715380"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-09-18T07:18:21.000Z",
      "commit": "6a4c3cb91f0357ca6d1ba21c5dc063566088d4b3",
      "fileid": "https://r2.ropensci.org/782d44c360ab0e1bffc48dcea39caf3b5384311f59d7558e8a7fa19b842f5737",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/lmiratrix/actions/runs/35316715380"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.1",
      "date": "2026-09-18T06:57:33.000Z",
      "commit": "6a4c3cb91f0357ca6d1ba21c5dc063566088d4b3",
      "fileid": "https://r2.ropensci.org/b7e330f91747fe30fad2e4f34b3d23f1e97d8ec6370077a4c7d69202fcc5bf9f",
      "status": "success",
      "buildurl": "https://github.com/r-universe/lmiratrix/actions/runs/35316715380"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-09-18T06:56:28.000Z",
      "commit": "6a4c3cb91f0357ca6d1ba21c5dc063566088d4b3",
      "fileid": "https://r2.ropensci.org/e5a51251ea9779ede6d9aa6d465760580eddd716319c3ce2984425e765738fe4",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/lmiratrix/actions/runs/35316715380"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-09-18T06:56:15.000Z",
      "commit": "6a4c3cb91f0357ca6d1ba21c5dc063566088d4b3",
      "fileid": "https://r2.ropensci.org/90ef6ab91ba5f14091088a7238a8ff3b41c0b9f1280671efe109cd290da00dc3",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/lmiratrix/actions/runs/35316715380"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-09-18T06:56:24.000Z",
      "commit": "6a4c3cb91f0357ca6d1ba21c5dc063566088d4b3",
      "fileid": "https://r2.ropensci.org/3ac4117240cefbf2913de075092bd7182174cba7cbda5ca3cad405e3e5762da1",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/lmiratrix/actions/runs/35316715380"
    }
  ]
}