Description Usage Arguments Details Value Examples
A vectorised function to calculate estimated glomerular filtration rate using the CKD-EPI equation. 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.
1 |
creat |
numeric vector of serum creatinine in µmol/l (or mg/dl if units = "US") |
age |
numeric vector of age in years (accepts integers or decimals) |
sex |
character vector of sex ("F" for female, "M" for male) |
ethnicity |
character vector of patient ethnicity, one of "black" or "non-black" |
units |
non-vectorised optional parameter for creatinine unit ("SI" for µmol/l (default), "US" for mg/dl) |
offset |
non-vectorised optional numeric parameter for offset in years |
Reference: Levey AS, Stevens LA, Schmid CH, et al. A new equation to estimate glomerular filtration rate. Ann Intern Med 2009; 150(9):604-612.
a numeric vector of eGFR values
1 2 |
[1] 62.46745
[1] 42.1421
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.