Package: apm 0.1.1
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.
Authors:
apm_0.1.1.tar.gz
apm_0.1.1.zip(r-4.7)apm_0.1.1.zip(r-4.6)apm_0.1.1.zip(r-4.5)
apm_0.1.1.tgz(r-4.6-any)apm_0.1.1.tgz(r-4.5-any)
apm_0.1.1.tar.gz(r-4.7-any)apm_0.1.1.tar.gz(r-4.6-any)
apm_0.1.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
apm/json (API)
| # Install 'apm' in R: |
| install.packages('apm', repos = c('https://tl2624.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/tl2624/apm/issues
Pkgdown/docs site:https://tl2624.github.io
- ptpdata - Dataset on Annual Homicide Rates
Last updated from:de1f2027a2. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 132 | ||
| source / vignettes | OK | 196 | ||
| linux-release-x86_64 | OK | 132 | ||
| macos-release-arm64 | OK | 183 | ||
| macos-oldrel-arm64 | OK | 157 | ||
| windows-devel | OK | 95 | ||
| windows-release | OK | 121 | ||
| windows-oldrel | OK | 81 | ||
| wasm-release | OK | 109 |
Exports:apm_estapm_modapm_prerobustness_bound
Dependencies:argchkclicpp11farverfwbgenericsggh4xggplot2ggrepelgluegtableisobandlabelinglatticelifecycleMASSpbapplyR6RColorBrewerRcpprlangS7sandwichscalesvctrsviridisLitewithrzoo
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Estimate ATTs from models fits | apm_est plot.apm_est summary.apm_est |
| Generate models used to fit outcomes | apm_mod |
| Fit validation models to pre-treatment data | apm_pre summary.apm_pre_fits |
| Plot outputs of 'apm_pre()' | plot.apm_pre_fits |
| Dataset on Annual Homicide Rates | ptpdata |
| Compute the robustness changepoint | robustness_bound |
