
Photo: NHS sign, Lewisham Hospital, London (CC BY-SA 3.0, credits)
10-year CVD risk with ethnicity, deprivation and clinical conditions.
AB Verified against the developers' software, or an independent package and the developers' material (evidence A, B)
developers' C code: 30,000 patients (9,188 rejected by both), max rel diff 2.9e-13; qrisk2-2014 0.1.1 (npm): 20,812 patients equal at its 6 decimals of a percentage.
Read the full verification reportNone recorded.
The arguments of qrisk2, with defaults where it has them; units are in the function's docstring.
agesexethnicitysmokingbmichol_hdl_ratiosbptownsend=0.0diabetes='none'af=0rheumatoid_arthritis=0ckd=0bp_treated=0family_history=0from cvd_risk import qrisk2
qrisk2(age=64, sex="female", ethnicity="indian", smoking="non", bmi=27, chol_hdl_ratio=4.0, sbp=140)Returns 0.1107 (computed by the package when this page was built). Every argument also accepts an array.