Skip to contents

Calculate eGFR based on CKD-EPI 2009 creatinine-based equation

Usage

egfr.ckdepi.cr.2009(
  creatinine,
  age,
  sex,
  ethnicity = NA,
  creatinine_units = "micromol/l",
  label_afroamerican = c("Afroamerican"),
  label_sex_male = c("Male", 1),
  label_sex_female = c("Female", 0),
  max_age = 100
)

Arguments

creatinine

Numeric vector. Serum creatinine, could be expressed in "micromol/L", "mmol/L" or "mg/dL". Units of measurement should be defined in variable creatinine_units (if not defined explicitly by user, the default value is "micromol/L").

age

Numeric vector. Age, in years.

sex

Vector. The value of variable refers to the parameters label_sex_male and label_sex_female.

ethnicity

Vector. Ethnicity. If no ethnicity will be defined, the calculation will use coefficients for White subjects. Specify ethnicity if a study includes African-American subjects, and define the the values of variable in the parameter label_afroamerican.

creatinine_units

Character string. Units in which serum creatinne is expressed. Could be one of the following: "micromol/L", "mmol/L" or "mg/dL".

label_afroamerican

List. Label(s) for Afroamerican ethnicity.

label_sex_male

List. Label(s) for definition(s) of male sex.

label_sex_female

List. Label(s) for definition(s) of female sex.

max_age

Numeric. Maximal age suitable for the equation application, in years. By default is 100 years, but change this value in case you would like to apply equation to older persons.

Value

numeric eGFR expressed in ml/min/1.73m2.

Details

Calculate estimated glomerular filtration rate (eGFR) by CKD-EPI 2009 creatinine-based equation.

Reference to the equation: Levey AS, Stevens LA, Schmid CH et al. A New Equation to Estimate Glomerular Filtration Rate. Ann Intern Med 2009;150:604–12.

Citation: Bikbov B. kidney.epi: Kidney-Related Functions for Clinical and Epidemiological Research. Scientific-Tools.Org, https://Scientific-Tools.Org. DOI: 10.32614/CRAN.package.kidney.epi

Author

Programming: Boris Bikbov https://www.linkedin.com/in/boris-bikbov.

Examples

# for a single patient
egfr.ckdepi.cr.2009 (creatinine = 1.4, age = 60, sex = "Male", ethnicity = "White",
  creatinine_units = "mg/dl")
#> [1] 54.22
# for a dataset - see vignettes for details
# egfr.ckdepi.cr.2009 (creatinine = dta$scr, age = dta$age, sex = dta$sex,
#   ethnicity = dta$race, creatinine_units = "mg/dl")