Learn R Programming

transplantr (version 0.2.0)

nankivell_spk: eGFR using the Nankivell-SPK formula

Description

A vectorised function to calculate the eGFR using the Nankivell-SPK formula. By default the equation accepts serum creatinine in <U+00B5>mol/l but can be changed to mg/dl by setting the units parameter to "US". To allow for serial measurements over time, such as for transplant follow-up data, there is an optional offset = n parameter which increases the age value used in the equation by n years. It has not been possible to run automated tests to confirm the accuracy of this function, so please use with caution.

Usage

nankivell_spk(SCr, Age, Sex, Weight, Height, Units = "SI", Offset = 0)

Arguments

SCr

numeric vector of serum creatinine in <U+00B5>mol/l (or mg/dl if units = "US")

Age

numeric vector of patient ages in years

Sex

character vector of sex ("F" for female, "M" for male)

Weight

numeric vector of patient weights in kilograms

Height

numeric vector of patient heights in centimetres

Units

non-vectorised optional parameter for creatinine and urea/BUN units ("SI" for <U+00B5>mol/l (default), "US" for mg/dl)

Offset

non-vectorised optional numeric parameter for offset in years

Value

numeric vector of eGFR values

Details

Reference: Nankivell BJ, Chapman JR, Allen RD: Predicting glomerular filtration rate after simultaneous pancreas and kidney transplantation. Clin Transplant 1995; 9(2): 129-134

Examples

Run this code
# NOT RUN {
nankivell_spk(SCr = 118, Age = 74, Sex = "M", Weight = 172, Height = 172) # 48.8
# }

Run the code above in your browser using DataLab