
Photo: An FDNY ambulance, New York (CC BY 4.0, credits)
1- and 3-year death, and death or MI, after ACS admission; with substitutions for creatinine and Killip class.
AC Checked against the developers' published material (evidence A (partial), C)
developers' web calculator code: 24,572/24,572 displayed values (6,143 combinations x 4 outcomes); unrounded differences up to 1.7e-07, the printed precision of the calculator's lookup tables; developers' 1-year death code (grace.js): 500 patients x 2 models, max rel diff 1.9e-14 (run unmodified in Node); developers' worked examples in the calculator tests: 4/4; printed hazard ratios: 24/24 hazard ratios of Table 2.
Read the full verification reportThe arguments of grace2, with defaults where it has them; units are in the function's docstring.
ageheart_ratesbpcardiac_arrestst_deviationelevated_enzymescreatinine=Nonekillip=Nonerenal_insufficiency=Nonediuretic=Nonehorizon=1outcome='death'from cvd_risk import grace2
grace2(age=70, heart_rate=90, sbp=120, cardiac_arrest=0, st_deviation=1,
elevated_enzymes=1, creatinine=1.2, killip=1, horizon=1, outcome="death")Returns 0.132 (computed by the package when this page was built). Every argument also accepts an array.