A vectorised function to calculate the MELD-Na score, a variant of the MELD score incorporating serum sodium levels. By default, bilirubin and creatinine are in µmol/l but this can be changed to mg/dl by setting the optional units parameter to "US".

meld_na(INR, bili, creat, Na, dialysis, units = "SI")

Arguments

INR

numeric vector of INR

bili

numeric vector of bilirubin (µmol/l)

creat

numeric vector of creatinine (µmol/l)

Na

numeric vector of sodium (mmol/l)

dialysis

whether on dialysis/CVVH (1 = yes, 0 = no)

units

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

Value

numeric vector of MELD-Na scores

Details

Reference: Biggins SW, Kim WR, Terrault NA, et al. Evidence-based incorporation of serum sodium concentration into MELD. Gastroenterology 2006; 130(6):1652-60.

Examples

meld_na(INR = 1.8, bili = 34, creat = 176, Na = 131, dialysis = 0)
#> [1] 26.20589
meld_na(INR = 1.8, bili = 2, creat = 2, Na = 131, dialysis = 0, units = "US")
#> [1] 26.25671