
Photo: The flag of the United States (CC BY-SA 4.0, credits)
10- and 30-year total CVD, ASCVD, heart failure, CHD and stroke; base, UACR, HbA1c, SDI and full models.
ABC Verified against the developers' software, or an independent package and the developers' material (evidence A (partial), B, C)
AHA online calculator: 189/189 displayed risks (34 patients); developers' worked examples: 100/100 printed values; preventr 0.12.2: 5,000 patients x 10 equations, max rel diff 6.3e-13 (preventr NA for ages 79.01-79.99); PREVENT calculator (Interconnected Systems, commit 583178e): 6 outputs for 5,000 patients, max rel diff 1.4e-13.
Read the full verification reportThe arguments of prevent, with defaults where it has them; units are in the function's docstring.
agesexsbpbp_treatedtotal_cholhdl_cholstatindiabetessmokeregfrbmiuacr=Nonehba1c=Nonesdi=Nonemodel='base'years=10outcome='total_cvd'from cvd_risk import prevent
prevent(age=50, sex="female", sbp=160, bp_treated=1, total_chol=5.2, hdl_chol=1.4,
statin=0, diabetes=1, smoker=0, egfr=90, bmi=35, years=10, outcome="total_cvd")Returns 0.1286 (computed by the package when this page was built). Every argument also accepts an array.