This release changes SCORE2() /
SCORE2_CKD() results for some patients (see the breaking
changes below). Results for everyone else are identical to 0.3.1, which
was verified against the 0.3.1 release on a grid of more than 35,000
input combinations and on calc_scores().
classify = TRUE in SCORE2() and
SCORE2_CKD() returned a function instead of a risk group,
because the age bands were defined as <= 69 and
>= 70. The 50-69 band now covers ages up to 70, matching
the SCORE2 / SCORE2-OP age split. Risk categories follow the 2021 ESC
prevention guidelines (doi:10.1093/eurheartj/ehab484). Whole-number ages
are unaffected.ehad260).creat, CKD ACR), typo fixes, risk-category
source cited, README link updated.NA, SCORE2() and
SCORE2_CKD() return NA with a warning naming
the missing input(s). A missing Age, Gender or
Risk.region previously stopped with “missing value where
TRUE/FALSE needed”, which in calc_scores() stopped the
whole data frame. Other missing inputs already gave NA, but
silently. ACR and trace remain optional.SCORE2() and SCORE2_CKD() now accept
vector inputs (each of length 1 or n) and return a vector, without
needing dplyr::rowwise(). Results are identical to scoring
row by row. Mismatched lengths give an informative error.SCORE2() and SCORE2_CKD() now return
NA with a warning for patients aged under 40. SCORE2 was
developed and validated for ages 40-69 (doi:10.1093/eurheartj/ehab309).
The data-frame wrappers and calc_scores() inherit
this.SCORE2() and SCORE2_CKD() now return
NA with a warning for patients aged under 70 with
diabetes = 1. SCORE2 is not intended for, or validated in,
people with diabetes. The diabetes coefficients came from the derivation
model used for recalibration, not from the published risk algorithm
(SCORE2 working group 2021, doi:10.1093/eurheartj/ehab309; Hageman et
al. 2022, doi:10.1093/eurheartj/ehab761, Table 1 footnote). Use
SCORE2_Diabetes() for these patients.SCORE2_scores(), SCORE2_CKD_scores() and
calc_scores() inherit this: their SCORE2 columns are now
NA for those rows.diabetes can now be omitted in SCORE2()
and SCORE2_CKD(): it is then assumed to be 0
(no diabetes), with a warning so the assumption is never silent. Calls
that pass diabetes, including the data-frame wrappers and
calc_scores(), are unaffected.-Article accepted in BMJ Heart
-SCORE2-Asia-Pacific added
-SCORE2 updated and CKD add-ons implemented