A vectorised function to calculate the MELD score using <U+00B5>mol/l for bilirubin and creatinine.
The units can be changed to mg/dl by setting the optional units parameter to "US". If the
patient is on CVVH or has been dialysed at least twice in the same week, the dialysis argument
should be set to 1, which changes the creatinine level used in the formula to 4mg/dl (353<U+00B5>mol/l).
Following UNOS guidelines, the values for INR as well bilirubin and creatinine (in mg/dl) are
set to a minimum value of 1 if less than 1.0
Usage
meld(INR, bili, creat, dialysis, units = "SI")
Arguments
INR
numeric vector of INR
bili
numeric vector of bilirubin (<U+00B5>mol/l)
creat
numeric vector of creatinine (<U+00B5>mol/l)
dialysis
numeric vector of whether on dialysis/CVVH (1 = yes, 2 = no)
units
Units for bilirubin and creatinine ("SI" for <U+00B5>mol/l (default), "US" for mg/dl)
Value
MELD score
Details
Reference: Kamath PS, Wiesner RH, Malinchoc M, et al. A model to predict survival in patients
with end-stage liver disease. Hepatology 2001; 33:464-470.