
Photo: The flag of New Zealand, Auckland Airport (Public domain, credits)
5-year CVD (primary prevention, BMI, policy, type 2 diabetes), major bleeding, after CVD and after ACS.
AC Checked against the developers' published material (evidence A (partial), C)
developers' R code: 7 x 3,000 patients, max abs diff 5.0e-13; every constant identical; printed tables and worked examples: 49/49 rows; 2/2 worked examples.
Read the full verification reportThe arguments of predict_cvd, with defaults where it has them; units are in the function's docstring.
agesexethnicitynzdepsmokingdiabetesaffamily_historysbptc_hdlbp_medslipid_medsantithromboticfrom cvd_risk import predict_cvd
predict_cvd(age=55, sex="female", ethnicity="maori", nzdep=4, smoking="ex", diabetes=0,
af=0, family_history=1, sbp=140, tc_hdl=4.5, bp_meds=1, lipid_meds=0,
antithrombotic=0)Returns 0.04919 (computed by the package when this page was built). Every argument also accepts an array.