apm: Averaged Prediction Models
In panel data settings, specifies set of candidate models, fits them to data from pre-treatment validation periods, and selects model as average over candidate models, weighting each by posterior probability of being most robust given its differential average prediction errors in pre-treatment validation periods. Subsequent estimation and inference of causal effect's bounds accounts for both model and sampling uncertainty, and calculates the robustness changepoint value at which bounds go from excluding to including 0. The package also includes a range of diagnostic plots, such as those illustrating models' differential average prediction errors and the posterior distribution of which model is most robust.
Version: |
0.1.0 |
Depends: |
R (≥ 3.5.0) |
Imports: |
stats, ggplot2 (≥ 3.5.1), ggh4x (≥ 0.2.8), ggrepel (≥
0.9.6), MASS, sandwich, pbapply (≥ 1.7-2), fwb (≥ 0.3.0), chk (≥ 0.10.0) |
Suggests: |
parallel, knitr, rmarkdown |
Published: |
2025-03-10 |
DOI: |
10.32614/CRAN.package.apm |
Author: |
Thomas Leavitt
[aut, cre],
Laura Hatfield
[aut],
Noah Greifer
[aut] |
Maintainer: |
Thomas Leavitt <thomas.leavitt at baruch.cuny.edu> |
BugReports: |
https://github.com/tl2624/apm/issues |
License: |
GPL-2 | GPL-3 [expanded from: GPL (≥ 2)] |
URL: |
https://github.com/tl2624/apm, https://tl2624.github.io/apm/ |
NeedsCompilation: |
no |
Materials: |
README |
CRAN checks: |
apm results |
Documentation:
Downloads:
Linking:
Please use the canonical form
https://CRAN.R-project.org/package=apm
to link to this page.