A vectorised function to calculate the eGFR using the Nankivell-SPK formula. By default the equation accepts serum creatinine in µ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.

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

SCr | numeric vector of serum creatinine in µ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 µmol/l (default), "US" for mg/dl) |

Offset | non-vectorised optional numeric parameter for offset in years |

numeric vector of eGFR values

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

nankivell_spk(SCr = 118, Age = 74, Sex = "M", Weight = 172, Height = 172) # 48.8#> [1] 77.73966