The flag of New Zealand, Auckland Airport
All models

PREDICT (New Zealand), 7 equations

New Zealand2018-2022Primary prevention

Photo: The flag of New Zealand, Auckland Airport (Public domain, credits)

What it predicts

5-year CVD (primary prevention, BMI, policy, type 2 diabetes), major bleeding, after CVD and after ACS.

Verification

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 report

Discrepancies found

  • ReferenceClamps ages above 79 to 80; tests body-mass index, HbA1c, creatinine and blood pressure bands with integer membership, so non-integer values between bands get the reference category; reads 'M' and 'Male' as female in two models; in the type 2 diabetes model, can assign other rows' albumin-to-creatinine ratio in mixed-sex batches; scores missing binary inputs as 0. Resolution: Gap-free bands, case-insensitive sex, per-row ratio and missing results for missing inputs.

Inputs

The arguments of predict_cvd, with defaults where it has them; units are in the function's docstring.

agesexethnicitynzdepsmokingdiabetesaffamily_historysbptc_hdlbp_medslipid_medsantithrombotic

Python usage

from 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.