{
  "_id": "6ae6fcef1e2c7b3a4f52f935",
  "Package": "staggR",
  "Type": "Package",
  "Title": "Fit Difference-in-Differences Models with Staggered\nInterventions",
  "Version": "0.2.2",
  "Authors@R": "c(person(\"Kyle\", \"Hart\",\nemail = \"hartky@ohsu.edu\",\nrole = c(\"aut\", \"cre\", \"cph\"),\ncomment = c(ORCID = \"0000-0001-8964-204X\")),\nperson(\"Stephan\", \"Lindner\",\nrole = c(\"aut\")))",
  "Description": "Fits linear difference-in-differences models in scenarios\nwhere intervention roll-outs are staggered over time. The\npackage implements a version of an approach proposed by Sun and\nAbraham (2021) <doi:10.1016/j.jeconom.2020.09.006> to estimate\ncohort- and time-since-treatment specific\ndifference-in-differences parameters, and it provides\nconvenience functions both for specifying the model and for\nflexibly aggregating coefficients to answer a variety of\nresearch questions.",
  "URL": "https://github.com/chse-ohsu/staggR",
  "BugReports": "https://github.com/chse-ohsu/staggR/issues",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "knitr",
  "Repository": "https://chse-ohsu.r-universe.dev",
  "Date/Publication": "2026-10-02 21:44:10 UTC",
  "RemoteUrl": "https://github.com/chse-ohsu/staggr",
  "RemoteRef": "HEAD",
  "RemoteSha": "3f876f0451f4df8cdc70f0ee6119de195e7b3a00",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-11-01 08:28:14 UTC",
    "User": "root"
  },
  "Author": "Kyle Hart [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0001-8964-204X>),\nStephan Lindner [aut]",
  "Maintainer": "Kyle Hart <hartky@ohsu.edu>",
  "_user": "chse-ohsu",
  "_type": "src",
  "_file": "staggR_0.2.2.tar.gz",
  "_fileid": "https://r2.ropensci.org/d7d2446718516bdeb3b5f3f0bb809f193a5aab76dc907b224ef45231d23110db",
  "_filesize": 1494942,
  "_sha256": "d7d2446718516bdeb3b5f3f0bb809f193a5aab76dc907b224ef45231d23110db",
  "_expires": "2027-02-09T08:48:45.000Z",
  "_created": "2026-11-01T08:28:14.000Z",
  "_published": "2026-11-01T08:48:47.426Z",
  "_upstream": "https://github.com/chse-ohsu/staggr",
  "_status": "success",
  "_maintainer": {
    "name": "Kyle Hart",
    "email": "hartky@ohsu.edu",
    "login": "trahelyk",
    "description": "",
    "uuid": 10616870,
    "orcid": "0000-0001-8964-204X"
  },
  "_jobs": [
    {
      "job": 124796194655,
      "time": 106,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13076780477"
    },
    {
      "job": 124796194620,
      "time": 114,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "13076800448"
    },
    {
      "job": 124796194680,
      "time": 224,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13077101290"
    },
    {
      "job": 124796194638,
      "time": 191,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13076159815"
    },
    {
      "job": 124795564481,
      "time": 182,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "13076038630"
    },
    {
      "job": 124796194609,
      "time": 100,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "13075629824"
    },
    {
      "job": 124796194801,
      "time": 80,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13076805360"
    },
    {
      "job": 124796194670,
      "time": 82,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13075749507"
    },
    {
      "job": 124796194775,
      "time": 86,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13075569961"
    }
  ],
  "_buildurl": "https://github.com/r-universe/chse-ohsu/actions/runs/41288784750",
  "_commit": {
    "id": "3f876f0451f4df8cdc70f0ee6119de195e7b3a00",
    "author": "Kyle Hart <hartky@ohsu.edu>",
    "committer": "Kyle Hart <hartky@ohsu.edu>",
    "message": "Fix minor errors in workshop script to prep for AHSR workshop\n",
    "time": 1790977450
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1",
      "role": "Depends"
    },
    {
      "package": "ggplot2",
      "version": ">= 3.0.0",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "sandwich",
      "role": "Suggests"
    }
  ],
  "_owner": "chse-ohsu",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-45",
      "n": 5
    },
    {
      "week": "2025-46",
      "n": 3
    },
    {
      "week": "2025-50",
      "n": 3
    },
    {
      "week": "2025-51",
      "n": 8
    },
    {
      "week": "2026-02",
      "n": 3
    },
    {
      "week": "2026-10",
      "n": 1
    },
    {
      "week": "2026-11",
      "n": 1
    },
    {
      "week": "2026-14",
      "n": 2
    },
    {
      "week": "2026-39",
      "n": 1
    },
    {
      "week": "2026-40",
      "n": 3
    }
  ],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "trahelyk",
      "count": 60,
      "uuid": 10616870
    },
    {
      "user": "stephanpdx",
      "count": 2,
      "uuid": 5709325
    }
  ],
  "_userbio": {
    "uuid": 13789315,
    "type": "organization",
    "name": "Center for Health Systems Effectiveness @ OHSU",
    "followers": 4,
    "description": "CHSE's focus is on large scale, aggregate interactions between different elements of health care delivery systems."
  },
  "_downloads": {
    "count": 357,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/staggR"
  },
  "_devurl": "https://github.com/chse-ohsu/staggr",
  "_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/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/staggR.html"
  ],
  "_homeurl": "https://github.com/chse-ohsu/staggr",
  "_realowner": "chse-ohsu",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.1",
      "date": "2026-01-14"
    },
    {
      "version": "0.2.0",
      "date": "2026-04-02"
    },
    {
      "version": "0.2.1",
      "date": "2026-09-22"
    },
    {
      "version": "0.2.2",
      "date": "2026-09-30"
    }
  ],
  "_exports": [
    "ave_coeff",
    "detrend",
    "detrend_factor",
    "id_tsi",
    "pick_time_refs",
    "prep_data",
    "sdid",
    "select_period",
    "select_terms",
    "select_tsi",
    "ts_plot"
  ],
  "_datasets": [
    {
      "name": "hosp",
      "title": "Hospitalization data",
      "object": "hosp",
      "class": [
        "data.frame"
      ],
      "fields": [
        "guid",
        "age",
        "sex",
        "comorb",
        "hospitalized",
        "county",
        "intervention_yr",
        "cohort",
        "yr"
      ],
      "rows": 31040,
      "table": true,
      "tojson": true
    },
    {
      "name": "hosp_agg",
      "title": "Aggregated hospitalization data",
      "object": "hosp_agg",
      "class": [
        "tidytable",
        "tbl",
        "data.table",
        "data.frame"
      ],
      "fields": [
        "yr",
        "county",
        "cohort",
        "intervention_yr",
        "pct_hospitalized",
        "n_enr",
        "mean_age",
        "pct_fem",
        "pct_cmb"
      ],
      "rows": 165,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "ave_coeff",
      "title": "Aggregate a specified set of terms and corresponding standard errors from an sdid model object",
      "topics": [
        "ave_coeff"
      ]
    },
    {
      "page": "detrend",
      "title": "Adjust outcomes for differential trends",
      "topics": [
        "detrend"
      ]
    },
    {
      "page": "detrend_factor",
      "title": "Calculate aggregated variance to provide denominator for trend-adjusting outcomes",
      "topics": [
        "detrend_factor"
      ]
    },
    {
      "page": "hosp",
      "title": "Hospitalization data",
      "topics": [
        "hosp"
      ]
    },
    {
      "page": "hosp_agg",
      "title": "Aggregated hospitalization data",
      "topics": [
        "hosp_agg"
      ]
    },
    {
      "page": "id_tsi",
      "title": "Identify time-since-intervention",
      "topics": [
        "id_tsi"
      ]
    },
    {
      "page": "pick_time_refs",
      "title": "Identify time period referents within each cohort.",
      "topics": [
        "pick_time_refs"
      ]
    },
    {
      "page": "prep_data",
      "title": "Prepare a data frame to work with sdid() function",
      "topics": [
        "prep_data"
      ]
    },
    {
      "page": "sdid",
      "title": "Fit a staggered difference-in-differences model",
      "topics": [
        "sdid"
      ]
    },
    {
      "page": "select_period",
      "title": "Retrieve a list of interaction terms from a sdid model representing the pre-intervention period",
      "topics": [
        "select_period"
      ]
    },
    {
      "page": "select_terms",
      "title": "Retrieve a list of interaction terms from a sdid model to be passed on for aggregation",
      "topics": [
        "select_terms"
      ]
    },
    {
      "page": "select_tsi",
      "title": "Retrieve a list of interaction terms from a sdid model representing a specified time-since-intervention",
      "topics": [
        "select_tsi"
      ]
    },
    {
      "page": "summary.sdid_mdl",
      "title": "Summarize an sdid model",
      "topics": [
        "summary.sdid_mdl"
      ]
    },
    {
      "page": "ts_plot",
      "title": "Generates time-series plots, optionally faceted by groups",
      "topics": [
        "ts_plot"
      ]
    }
  ],
  "_readme": "https://github.com/chse-ohsu/staggr/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "farver",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lifecycle",
    "R6",
    "RColorBrewer",
    "rlang",
    "S7",
    "scales",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "staggR.Rmd",
      "filename": "staggR.html",
      "title": "staggR",
      "engine": "knitr::rmarkdown",
      "headings": [
        "staggR: Fit difference-in-differences models with staggered interventions",
        "Background",
        "Example using simulated data",
        "Explore data",
        "Visualize hospitalization trends",
        "Fit a difference-in-differences regression model",
        "Calculating coefficient averages",
        "Calculating custom standard errors",
        "Using aggregated data",
        "Adjusting for non-parallel trends",
        "References"
      ],
      "created": "2025-09-24 20:20:06",
      "modified": "2026-09-22 19:05:18",
      "commits": 16
    }
  ],
  "_score": 4.698970004336019,
  "_indexed": true,
  "_nocasepkg": "staggr",
  "_universes": [
    "chse-ohsu",
    "trahelyk"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.2",
      "date": "2026-11-01T08:30:01.000Z",
      "distro": "resolute",
      "commit": "3f876f0451f4df8cdc70f0ee6119de195e7b3a00",
      "fileid": "https://r2.ropensci.org/4cfa40ef373906a18adadef6e4c24ce129d7c771b80510277f73221a6da4aa1b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chse-ohsu/actions/runs/41288784750"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.2.2",
      "date": "2026-11-01T08:30:01.000Z",
      "distro": "resolute",
      "commit": "3f876f0451f4df8cdc70f0ee6119de195e7b3a00",
      "fileid": "https://r2.ropensci.org/6147153b972e7c1a386ed12ecd41ebb6b4eaed409ae471d2e05e67fe3dd49397",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chse-ohsu/actions/runs/41288784750"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.2",
      "date": "2026-11-01T08:47:31.000Z",
      "commit": "3f876f0451f4df8cdc70f0ee6119de195e7b3a00",
      "fileid": "https://r2.ropensci.org/3cbf5e045464b3a9a5ede409b166e8c931d1d3095557d7e6591f01e6f7cb0f82",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chse-ohsu/actions/runs/41288784750"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.2.2",
      "date": "2026-11-01T08:40:04.000Z",
      "commit": "3f876f0451f4df8cdc70f0ee6119de195e7b3a00",
      "fileid": "https://r2.ropensci.org/0fa0af8f0199f8623693801e461c961f76c2efd0d98511c4f87dddb5df1563a2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chse-ohsu/actions/runs/41288784750"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.2",
      "date": "2026-11-01T08:30:12.000Z",
      "commit": "3f876f0451f4df8cdc70f0ee6119de195e7b3a00",
      "fileid": "https://r2.ropensci.org/87b3b7ee04f705361ad3fe28f997d3c261eb0c2e7d635436e2615c4a3313a5bb",
      "status": "success",
      "buildurl": "https://github.com/r-universe/chse-ohsu/actions/runs/41288784750"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.2",
      "date": "2026-11-01T08:29:18.000Z",
      "commit": "3f876f0451f4df8cdc70f0ee6119de195e7b3a00",
      "fileid": "https://r2.ropensci.org/04000b642f63b0d6d413bb388c95dd8b86d03a000c510c4280cf05e3b9b4575e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chse-ohsu/actions/runs/41288784750"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.2",
      "date": "2026-11-01T08:29:20.000Z",
      "commit": "3f876f0451f4df8cdc70f0ee6119de195e7b3a00",
      "fileid": "https://r2.ropensci.org/0df0fdfd753012357837bf6155b30dbd7cc3b601b4e2f17b1807d901055d2842",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chse-ohsu/actions/runs/41288784750"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.2.2",
      "date": "2026-11-01T08:29:28.000Z",
      "commit": "3f876f0451f4df8cdc70f0ee6119de195e7b3a00",
      "fileid": "https://r2.ropensci.org/70070f1bea29d5f062b882f8e5ec14be9c34b6ae69137d0283ad030dd8b1a7dc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chse-ohsu/actions/runs/41288784750"
    }
  ]
}