
Photo: Blood glucose meter (CC BY-SA 4.0, credits)
10-year CVD risk in type 2 diabetes, ages 40-69.
ABC Verified against the developers' software, or an independent package and the developers' material (evidence A, B, C)
official calculator (U-Prevent): 21/22 displayed values (1 at a rounding edge; 10 patients rejected by the form); RiskScorescvd 0.3.1: 20,000 patients, max rel diff 1.14e-13; worked examples: 7/8 printed values (1 misprint).
Read the full verification reportThe arguments of score2_diabetes, with defaults where it has them; units are in the function's docstring.
agesexsmokersbptotal_cholhdl_choldiabetesage_at_diabetes_diagnosishba1cegfrregionfrom cvd_risk import score2_diabetes
score2_diabetes(age=60, sex="male", smoker=0, sbp=140, total_chol=5.5, hdl_chol=1.2,
diabetes=1, age_at_diabetes_diagnosis=52, hba1c=58, egfr=80, region="moderate")Returns 0.1385 (computed by the package when this page was built). Every argument also accepts an array.