Skip to contents

Calculate eGFR by the CKD-EPI 2021 creatinine-cystatin-based equation

Usage

egfr.ckdepi.cr_cys.2021(
  creatinine,
  cystatin,
  age,
  sex,
  creatinine_units = "micromol/l",
  cystatin_units = "mg/L",
  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").

cystatin

Numeric vector. Serum cystatin, could be expressed in "mg/L" or "nanomol/L". Units of measurement should be defined in variable cystatin_units (if not defined explicitly by user, the default value is "mg/L").

age

Numeric vector. Age, in years.

sex

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

creatinine_units

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

cystatin_units

Character string. Units in which serum cystatin is expressed. Could be one of the following: "mg/L" or "nanomol/L"

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 the CKD-EPI 2021 creatinine-cystatin-based equation.

Reference to the equation: Inker LA, Eneanya ND, Coresh J, et al. New creatinine- and cystatin C–based equations to estimate GFR without race. N Engl J Med. 2021;385:1737-1749.

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_cys.2021 (creatinine = 1.4, cystatin = 0.8, age = 60,
   sex = "Male", creatinine_units = "mg/dl")
#> [1] 83.97
# for a dataset - see vignettes for details
# egfr.ckdepi.cr_cys.2021 (creatinine = dta$scr, cystatin = dta$cys,
#  age = dta$age, sex = dta$sex, creatinine_units = "mg/dl")