A vectorised function to calculate the UKELD score using SI units for bilirubin and creatinine.

ukeld(INR, bili, creat, Na, units = "SI")

Arguments

INR

numeric vector of INR

bili

numeric vector of bilirubin in µmol/l

creat

numeric vector of creatinine in µmol/l

Na

numeric vector of sodium in mmol/l

units

Units for bilirubin and creatinine ("SI" for µmol/l (default), "US" for mg/dl)

Value

numeric vector of UKELD scores

Details

Reference: Barber KM, Madden S, Allen J, et al. Elective liver transplant list mortality: development of a United Kingdom end-stage liver disease score. Transplantation 2011; 92(4):469-76.

Examples

ukeld(INR = 1.0, bili = 212, creat = 54, Na = 126)
#> [1] 63.21842