
Photo: Three generations of a family (CC BY-SA 4.0, credits)
10-year hard ASCVD, ages 40-79, white and African American.
BC Verified against the developers' software, or an independent package and the developers' material (evidence B, C)
guideline worked values: 46/46 Table A values; worked example 3/4 at printed precision (guideline truncates an intermediate sum); CVrisk 1.2.1: 19,599 patients, max rel diff 2.2e-13; ascvdcalc 1.0.5: 20,000/20,000 equal at its 2 significant digits; medikquantis (commit fde7c2d): 20,000/20,000 equal at its 0.1% rounding.
Read the full verification reportThe arguments of pce, with defaults where it has them; units are in the function's docstring.
agesexracetotal_cholhdl_cholsbpbp_treatedsmokerdiabetesfrom cvd_risk import pce
pce(age=55, sex="female", race="white", total_chol=5.5, hdl_chol=1.3, sbp=120,
bp_treated=0, smoker=0, diabetes=0)Returns 0.02039 (computed by the package when this page was built). Every argument also accepts an array.