{
  "_id": "6a1d54b31d7bb097a0a467a8",
  "Package": "staggR",
  "Type": "Package",
  "Title": "Fit Difference-in-Differences Models with Staggered\nInterventions",
  "Version": "0.2.0",
  "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-04-02 13:34:55 UTC",
  "RemoteUrl": "https://github.com/chse-ohsu/staggr",
  "RemoteRef": "HEAD",
  "RemoteSha": "fed2c52522f4101a0a4f2010188260b248e74834",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-01 09:41:39 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>",
  "MD5sum": "723d1002460919f804b23c824df5d2ec",
  "_user": "chse-ohsu",
  "_type": "src",
  "_file": "staggR_0.2.0.tar.gz",
  "_fileid": "a18719bcf228dfb6c84f7391ae47aaf81bd82f39a5133fbde2b5b4a6039650c5",
  "_filesize": 1476642,
  "_sha256": "a18719bcf228dfb6c84f7391ae47aaf81bd82f39a5133fbde2b5b4a6039650c5",
  "_created": "2026-06-01T09:41:39.000Z",
  "_published": "2026-06-01T09:45:23.498Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78825889199,
      "time": 136,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7328239420"
    },
    {
      "job": 78825889289,
      "time": 124,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7328235138"
    },
    {
      "job": 78825889232,
      "time": 182,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7328246402"
    },
    {
      "job": 78825889230,
      "time": 166,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7328240075"
    },
    {
      "job": 78825410928,
      "time": 173,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7328193817"
    },
    {
      "job": 78825889279,
      "time": 112,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7328231085"
    },
    {
      "job": 78825889255,
      "time": 144,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7328241911"
    },
    {
      "job": 78825889321,
      "time": 87,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7328222853"
    },
    {
      "job": 78825889201,
      "time": 101,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7328227466"
    }
  ],
  "_buildurl": "https://github.com/r-universe/chse-ohsu/actions/runs/26747120972",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/chse-ohsu/staggr",
  "_commit": {
    "id": "fed2c52522f4101a0a4f2010188260b248e74834",
    "author": "Kyle Hart <hartky@ohsu.edu>",
    "committer": "Kyle Hart <hartky@ohsu.edu>",
    "message": "Update cran-comments.md for package version 0.2.0\n",
    "time": 1775136895
  },
  "_maintainer": {
    "name": "Kyle Hart",
    "email": "hartky@ohsu.edu",
    "login": "trahelyk",
    "description": "",
    "uuid": 10616870,
    "orcid": "0000-0001-8964-204X"
  },
  "_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-31",
      "n": 2
    },
    {
      "week": "2025-33",
      "n": 1
    },
    {
      "week": "2025-37",
      "n": 1
    },
    {
      "week": "2025-38",
      "n": 2
    },
    {
      "week": "2025-39",
      "n": 1
    },
    {
      "week": "2025-41",
      "n": 1
    },
    {
      "week": "2025-42",
      "n": 4
    },
    {
      "week": "2025-43",
      "n": 1
    },
    {
      "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
    }
  ],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "trahelyk",
      "count": 50,
      "uuid": 10616870
    },
    {
      "user": "stephanpdx",
      "count": 2,
      "uuid": 5709325
    }
  ],
  "_userbio": {
    "uuid": 13789315,
    "type": "organization",
    "name": "Center for Health Systems Effectiveness @ OHSU",
    "description": "CHSE's focus is on large scale, aggregate interactions between different elements of health care delivery systems."
  },
  "_downloads": {
    "count": 456,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/staggR"
  },
  "_devurl": "https://github.com/chse-ohsu/staggr",
  "_searchresults": 0,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/staggR.html",
    "manual.pdf"
  ],
  "_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"
    }
  ],
  "_exports": [
    "ave_coeff",
    "detrend",
    "detrend_factor",
    "id_tsi",
    "pick_time_refs",
    "prep_data",
    "sdid",
    "select_period",
    "select_terms",
    "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": "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-04-01 22:02:55",
      "commits": 15
    }
  ],
  "_score": 4.903089986991944,
  "_indexed": true,
  "_nocasepkg": "staggr",
  "_universes": [
    "chse-ohsu",
    "trahelyk"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.0",
      "date": "2026-06-01T09:43:49.000Z",
      "distro": "noble",
      "commit": "fed2c52522f4101a0a4f2010188260b248e74834",
      "fileid": "33e5c4527db702e606ed3ca2e2e94e02c5481a9322fe445431d1c9a7e59db8b0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chse-ohsu/actions/runs/26747120972"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.0",
      "date": "2026-06-01T09:43:40.000Z",
      "distro": "noble",
      "commit": "fed2c52522f4101a0a4f2010188260b248e74834",
      "fileid": "8e2311cd66691826da1a755fa8f66a6b6fee6014863f19274912a59ade0fbb62",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chse-ohsu/actions/runs/26747120972"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.0",
      "date": "2026-06-01T09:44:12.000Z",
      "commit": "fed2c52522f4101a0a4f2010188260b248e74834",
      "fileid": "87a70b424f35ebee54aa13ac1cab9aeadbaf4f35e55d623c953512a946db1bdd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chse-ohsu/actions/runs/26747120972"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.2.0",
      "date": "2026-06-01T09:43:55.000Z",
      "commit": "fed2c52522f4101a0a4f2010188260b248e74834",
      "fileid": "2575f99e58ca11bed35077ecebc6b6c9f2262f2c0faa60075203dff65adc6137",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chse-ohsu/actions/runs/26747120972"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.0",
      "date": "2026-06-01T09:43:51.000Z",
      "commit": "fed2c52522f4101a0a4f2010188260b248e74834",
      "fileid": "78e4a07fea26d1e2acf8264ab0840bd95969bc1e10745edceb08931151d4c5d1",
      "status": "success",
      "buildurl": "https://github.com/r-universe/chse-ohsu/actions/runs/26747120972"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-06-01T09:43:48.000Z",
      "commit": "fed2c52522f4101a0a4f2010188260b248e74834",
      "fileid": "70e0bdd43d7045d15dad6de366d40b86b278a72637a7283f82c45e8107bed325",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chse-ohsu/actions/runs/26747120972"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-06-01T09:42:57.000Z",
      "commit": "fed2c52522f4101a0a4f2010188260b248e74834",
      "fileid": "767322fed303d19a93ddc737ac4d18a05794fffc05c657809e94a294e8300780",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chse-ohsu/actions/runs/26747120972"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.2.0",
      "date": "2026-06-01T09:43:06.000Z",
      "commit": "fed2c52522f4101a0a4f2010188260b248e74834",
      "fileid": "8dad286563e244c63b4f81bc79acaf36e763f59199a531418839b618532b60fd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chse-ohsu/actions/runs/26747120972"
    }
  ]
}