Framingham town-line sign (illustration)
All models

Framingham general CVD (2008)

Framingham, Massachusetts2008Primary prevention

Photo: Framingham town-line sign (illustration) (Public domain, credits)

What it predicts

10-year general CVD, laboratory and BMI versions.

Verification

ABC Verified against the developers' software, or an independent package and the developers' material (evidence A, B, C)

Framingham Heart Study spreadsheets: 1,000 patients x 2 models, max rel diff 2.0e-14 (formulas recalculated by LibreOffice); 8/8 cached risks; worked examples: 2/2 score-sheet cases; 32/32 printed coefficients; CVrisk 1.2.1: 19,646 patients, max rel diff 2.1e-14; cvd-risk-scores 1.0.2: 19,898 patients, max rel diff 2.1e-14; does not import with pydantic 2; framingham_risk (commit ae83f7a): 20,000 patients, max rel diff 1.7e-14.

Read the full verification report

Discrepancies found

  • ReferenceReturns missing for ages 74.01 to 74.99, floors risks below 1% at 1% and caps the BMI model at 30%. Resolution: Excluded before comparison; the publication followed.
  • ReferenceDoes not import with pydantic 2, which its requirements allow, and rejects age 30. Resolution: Run with pydantic 1.10.21; age 30 left out of the comparison.

Inputs

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

agesexsbpbp_treatedsmokerdiabetestotal_chol=Nonehdl_chol=Nonebmi=Nonemodel='lab'

Python usage

from cvd_risk import framingham

framingham(age=61, sex="female", sbp=124, bp_treated=0, smoker=1, diabetes=0,
           total_chol=4.65, hdl_chol=1.22)

Returns 0.1045 (computed by the package when this page was built). Every argument also accepts an array.