
Photo: NHS sign, Lewisham Hospital, London (CC BY-SA 3.0, credits)
10-year CVD risk with social deprivation (SIMD) and family history, ages 30-74.
AC Verified against the developers' software, or an independent package and the developers' material (evidence A, C)
official calculator (NHS Scotland; version 2.0): 200/200 displayed scores; developers' offline calculator 1.5.1 (version 1.0): 1,000/1,000 within 5.7e-14 points (archived 2014 code, run in Node); printed appendix (version 1.0) and supplement (version 2.0): every beta, mean and survival found in the PDF text; 0.2286 typo identified.
Read the full verification reportThe arguments of assign, with defaults where it has them; units are in the function's docstring.
agesextotal_cholhdl_cholsbpdiabetesfamily_historycigarettes_per_daysimd_scoreversion=2from cvd_risk import assign
assign(age=55, sex="male", total_chol=6.0, hdl_chol=1.2, sbp=140, diabetes=0,
family_history=1, cigarettes_per_day=10, simd_score=20)Returns 12.5 (computed by the package when this page was built). Every argument also accepts an array.