Learn R Programming

transplantr (version 0.2.0)

meld: MELD score

Description

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.

Examples

Run this code
# NOT RUN {
meld(INR = 2.0, bili = 54, creat = 170, dialysis = 0)
meld(INR = 2.0, bili = 3.1, creat = 1.9, dialysis = 0, units = "US")
# }

Run the code above in your browser using DataLab