Skip to content

Averaged Prediction Models

0packages depend
6.4Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

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.

Changes in 0.1.1
  • Fixed a bug when only model was supplied to apm_pre().
  • Updated documentation and vignettes.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 4.6 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-09-08
  • ERROR12 OK, 1 ERROR2026-09-07
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.1.1
READMEYes · 188 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 0.1.1Citation fileNoWebsiteYes · pkgdown
Help pages
7 (1 internal)includes a package overview page
Examples that run
100%5 run in a plain check
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
0%

Downloads

6.4K
CRAN downloads in the past year
Rank #7,844 · ~18/day · ~535/mo
Daily download trend is not available in this view yet.
39030 days
1.1K90 days
6.4K1 year
Compare downloads with other packages →
Also on83 r2u26 autocran

Repository

2Stars
2Forks
0Open issues
0Open PRs
0Releases
41Commits
2Commit identities
41 commits · Last activity 2025-05-22
Responsiveness
How these are sampled
PRs merged (all time)
67%
Median days to close, 50 most recently updated closed issues
8
Median days to close, 50 most recently updated closed PRs
1

Stars over time

2025-03-22 · 22026-07-07 · 2
PracticesBeta

8 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/tl2624/apm on 2026-10-18.

Continuous integration (1)
GitHub Actions
Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2025-05-22 · The repository has a site deploy workflow

pkgdown site last built 2025-05-22

CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
9 external dependencies (excludes base and recommended)

Installing apm adds 27 packages (10 with compiled code, 20 MB of source tarballs). Heaviest: ggplot2 6.0 MB, Rcpp 1.8 MB, isoband 1.5 MB.

Depends (1)
R >= 3.5.0
LinkingTo (0)
none
Suggests (3)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (3)
Author, Maintainer since 0.1.0 (2025)
Releases (2)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.1.1Latest
    record
    2025-05-22 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 0.1.0
    record
    2025-03-10
  • R
    R 4.4.0 released · 2024-04-24

Package metadata

First published
2025-03-10
Total releases
2 / 1 yrs
License
GPL (>= 2) OSI
Minimum R
≥ 3.5.0
Bundled data
1.2 KB / 1 file
Download size
584 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("apm")
Leavitt, T., Greifer, N., & Hatfield, L. (2025). apm: Averaged Prediction Models (Version 0.1.1) [Computer software]. https://doi.org/10.32614/CRAN.package.apm

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for apm version 0.1.1 [Data set]. HJJB, LLC. Data release v2026-10-21. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy