A vectorised function to calculate SOFT Scores for predicting patient survival after liver transplantation when the P-SOFT score is already known. The P-SOFT Score can be calculated using the transplantr::p_soft() function. Alternatively, the SOFT Score can be calculated in full, including the P-SOFT parameters using the transplantr::soft() function. The units for donor serum creatinine are in µmol/l but can be changed to mg/dl by setting the Units parameter to "US".
soft2(PSoft, PortalBleed, DonorAge, DonorCVA, DonorSCr, National, CIT,
Units = "SI")
numeric vector of P-SOFT scores
numeric vector of whether portal bleeding in 48 hours pre-transplant (1 = "yes", 0 = "no")
numeric vector of donor ages in years
numeric vector of whether donor cause of death is CVA/stroke (1 = "yes", 0 = "no")
numeric vector of donor terminal serum creatinine
numeric vector of whether national allocation (1 = "yes", 0 = "no")
numeric vector of cold ischaemic time in hours
units to use for creatinine, "SI" (default) for µmol/l, "US" for mg/dl
numeric vector of SOFT Scores
Reference: Rana A, Hardy MA, Halazun KJ, et al. Survival Outcomes Following Liver Transplantation (SOFT) Score: A Novel Method to Predict Patient Survival Following Liver Transplantation. American Journal of Transplantation 2008; 8:2537-2546.
soft2(PSoft = 4, PortalBleed = 0, DonorAge = 61, DonorCVA = 1, DonorSCr = 140,
National = 1, CIT = 12) # 13
#> [1] 13