Package: pathintdid 0.1.0
pathintdid: Path-Integrated Difference-in-Differences
Implements the Path-Integrated Difference-in-Differences ('PI-DiD') framework of Salavi (2026), which treats the treatment effect as a trajectory tau(t) = c1(t) - c0(t) and integrates the baseline-differenced gap over a post-treatment window to obtain a cumulative causal effect and a path-integrated average treatment effect on the treated, together with cluster-robust standard errors, confidence intervals, diagnostic plots, and the pre-treatment parallel-trends, grid-density, and anticipation-robustness checks of section 5 of the companion paper. This approach avoids the endpoint-subtraction bias that arises whenever a transitory policy's effect has fully decayed by the evaluation date, in which case the conventional static difference-in-differences estimate can be zero even though the cumulative benefit delivered to treated units was strictly positive. Formerly distributed as a Stata package under the names 'pidid' and 'pididplot'.
Authors:
pathintdid_0.1.0.tar.gz
pathintdid_0.1.0.zip(r-4.7-any)pathintdid_0.1.0.zip(r-4.6-any)pathintdid_0.1.0.zip(r-4.5-any)
pathintdid_0.1.0.tgz(r-4.6-any)pathintdid_0.1.0.tgz(r-4.5-any)
pathintdid_0.1.0.tar.gz(r-4.7-any)pathintdid_0.1.0.tar.gz(r-4.6-any)
pathintdid_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
pathintdid/json (API)
| # Install 'pathintdid' in R: |
| install.packages('pathintdid', repos = c('https://fabricesalavi.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/fabricesalavi/pathintdid/issues
- trainingpanel - Example training-program panel
Last updated from:5f553d5694. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 91 | ||
| source / vignettes | OK | 134 | ||
| linux-release | OK | 94 | ||
| macos-release | OK | 187 | ||
| macos-oldrel | OK | 128 | ||
| windows-devel | OK | 62 | ||
| windows-release | OK | 66 | ||
| windows-oldrel | OK | 64 | ||
| wasm-release | OK | 68 |
Exports:pathintdidpathintdidplotpathintdidrobust
Dependencies:
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Path-Integrated Difference-in-Differences (PI-DiD) estimator | pathintdid print.pathintdid summary.pathintdid |
| Plot the causal impact of a Path-Integrated DiD analysis | pathintdidplot |
| Robustness checks and specification tests for PI-DiD | pathintdidrobust print.pathintdidrobust |
| Example training-program panel | trainingpanel |
