An Implementation of the PREVENT and Pooled Cohort Equations
Overview
Implements the American Heart Association Predicting Risk of cardiovascular disease EVENTs (PREVENT) equations from Khan SS, Matsushita K, Sang Y, and colleagues (2023) doi:10.1161/CIRCULATIONAHA.123.067626, with optional comparison with their de facto predecessor, the Pooled Cohort Equations from the American Heart Association and American College of Cardiology (2013) doi:10.1161/01.cir.0000437741.48606.98 and the revision to the Pooled Cohort Equations from Yadlowsky and colleagues (2018) doi:10.7326/M17-3011.
- User-visible changes:
- This is a patch to implement the correction issued by the authors of the PREVENT equations on 2026-10-14 for models that use the HbA1c coefficients (i.e., the 10- and 30-year HbA1c models and the 10- and 30-year full models).
- This correction was formally published as an erratum (https://doi.org/10.1161/CIR.0000000000001491), and it was also accompanied by a notification on their website page for their calculator (https://professional.heart.org/en/guidelines-and-statements/prevent-calculator) with an accompanying PDF of FAQs (https://professional.heart.org/-/media/PHD-Files/Guidelines-and-Statements/PREVENT/PREVENT-Update-FAQ-101426.pdf).
- I have also created archived versions of the website notification (https://web.archive.org/web/20261015220358/https://professional.heart.org/en/guidelines-and-statements/prevent-calculator) and PDF of FAQs (https://web.archive.org/web/20261016222755/https://professional.heart.org/-/media/PHD-Files/Guidelines-and-Statements/PREVENT/PREVENT-Update-FAQ-101426.pdf)
- Minor updates to documentation stemming from new notes returned during checks of the package before submission. This was due to citations occassionally pointing to PubMed instead of using DOIs, with the new notes indicating these should be converted to DOIs. As a result of these changes, the
estimate_risk()/est_risk()function documentation now has a dedicated "References" section that points to key references. - Internal changes:
- Updates to test cases in accordance with the above
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-07-03
- NOTE13 NOTE2026-06-08
- WARNING12 NOTE, 1 WARNING2026-06-07
Show 1 earlier changeHide 1 earlier change
- NOTE3 OK, 11 NOTE2026-03-10
Documentation
The repository also keeps web-only articles.
- Help pages
- 3
- Examples that run
- 100%3 run in a plain check (1 of them under a condition)
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 33%
Downloads
Repository
- PRs merged (all time)
- not measured
- Median days to close, 50 most recently updated closed issues
- 34
- Median days to close, 50 most recently updated closed PRs
- not measured
Stars over time
Forks over time
Releases over time
Issues over time
Commits over time
5 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/martingmayer/preventr on 2026-10-21.
Dependencies
Installing preventr adds 25 packages (12 with compiled code, 16 MB of source tarballs). Heaviest: ggplot2 6.0 MB, isoband 1.5 MB, farver 1.2 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 0.12.1Latest
- 0.12.0
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 0.11.02025-01-27 · diff ↗
- 0.10.0
- RR 4.4.0 released · 2024-04-24
- 0.9.02024-02-26
- RR 4.3.0 released · 2023-04-21
Package metadata
- First published
- 2024-02-26
- Total releases
- 5 / 2 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1.0
- Download size
- 801 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("preventr")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.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.