Package: apm Title: Averaged Prediction Models Version: 0.1.1 Authors@R: c(person("Thomas", "Leavitt", email = "thomas.leavitt@baruch.cuny.edu", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-3668-6409")), person("Laura", "Hatfield", role = c("aut"), comment = c(ORCID = "0000-0003-0366-3929")), person("Noah", "Greifer", email = "ngreifer@iq.harvard.edu", role = c("aut"), comment = c(ORCID = "0000-0003-3067-7154"))) Description: 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. License: GPL (>= 2) 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 Encoding: UTF-8 Roxygen: list(markdown = TRUE) RoxygenNote: 7.3.2 LazyData: true VignetteBuilder: knitr URL: https://github.com/tl2624/apm/, https://tl2624.github.io/apm/ BugReports: https://github.com/tl2624/apm/issues Repository: https://tl2624.r-universe.dev Date/Publication: 2025-05-22 18:42:00 UTC RemoteUrl: https://github.com/tl2624/apm RemoteRef: HEAD RemoteSha: de1f2027a2edae4346fb91a009e6c7cf5cb316bf NeedsCompilation: no Packaged: 2026-06-17 09:37:06 UTC; root Author: Thomas Leavitt [aut, cre] (ORCID: ), Laura Hatfield [aut] (ORCID: ), Noah Greifer [aut] (ORCID: ) Maintainer: Thomas Leavitt