
Photo: South America from orbit (NASA Blue Marble) (Public domain, credits)
10-year fatal and non-fatal CVD, ages 40-74, laboratory and office versions.
AC Verified against the developers' software, or an independent package and the developers' material (evidence A, C)
developers' R package, commit ea83370 (updated_lac = TRUE): 5,000 patients x 2 versions, max rel diff 3.4e-13; developers' R package 1.0.2 as released, commit af8322e (updated_lac = TRUE): lab 5,000/5,000; office agrees for men, departs for women (SBP-by-sex coefficient applied to sex x smoking; fixed in ea83370); published coefficients: Table 3, both models, each term; published worked example: range and median over 31 countries for a woman and a man, 6/6 to the printed per cent.
Read the full verification reportThe arguments of globorisk, with defaults where it has them; units are in the function's docstring.
agesexsbpsmokercountryyeartotal_chol=Nonediabetes=Nonebmi=Noneversion='lab'horizon=10lac=Falsefrom cvd_risk import globorisk
globorisk(age=55, sex="female", sbp=140, smoker=0, country="BRA", year=2020,
total_chol=5.5, diabetes=0, lac=True)Returns 0.03723 (computed by the package when this page was built). Every argument also accepts an array.