A vectorised function to generate a PELD score for paediatric liver transplant candidates.
The default unit for bilirubin is <U+00B5>mol/l and albumin in g/l, but these can be changed to
mg/dl and g/dl respectively by setting the
optional units parameter to "US".
Usage
peld(INR, bili, albumin, listing_age, growth_failure, units = "SI")
Arguments
INR
INR
bili
serum biliruin (<U+00B5>mol/l)
albumin
serum albumin (g/l)
listing_age
age at the time of listing (years; integer or decimal)
growth_failure
whether there is growth failure (1 = yes, 0 = no)
units
units used for bilirubin ("SI" for <U+00B5>mol/l (default), "US" for mg/dl)
Value
numeric vector of PELD scores
Details
Some labs report albumin in g/dl rather than the g/l used in this function.
If units are set to "US" then g/dl is assumed and albumin should be divided by 10 if the
lab reports are in g/l. If using SI units,
take care to
multiply the lab albumin by 10 if the lab output is in g/dl.
Reference: McDiarmid SV, Anand R, Lindblad AS, et. al. Development of a pediatric end-stage
liver disease score to predict poor outcome in children awaiting liver transplantation.
Transplantation 2002; 74(2):173-81.