Learn R Programming

transplantr (version 0.2.0)

meld_na: MELD-Na score

Description

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 <U+00B5>mol/l but this can be changed to mg/dl by setting the optional units parameter to "US".

Usage

meld_na(INR, bili, creat, Na, 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)

Na

numeric vector of sodium (mmol/l)

dialysis

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

units

Units for bilirubin and creatinine ("SI" for <U+00B5>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

Run this code
# NOT RUN {
meld_na(INR = 1.8, bili = 34, creat = 176, Na = 131, dialysis = 0)
meld_na(INR = 1.8, bili = 2, creat = 2, Na = 131, dialysis = 0, units = "US")
# }

Run the code above in your browser using DataLab