ckdepi_2021_egfr.Rd
Calculates eGFR using the CKDEPI 2021 creatinine equation
ckdepi_2021_egfr(sexf, age, creat)
boolean value of sex Female: TRUE, Male: FALSE
age of subject (years)
creatinine levels of subject (mg/dL)
the eGFR value (mL/min/1.73m2)
e <- ckdepi_2021_egfr(TRUE, 24, 1) df <- data.frame( "SEXF" = c(TRUE, FALSE, TRUE, FALSE), "RACEB" = c(FALSE, FALSE, TRUE, FALSE), "AGE" = c(24, 24, 23, 24), "CREAT" = c(1, 1, 2, 1) ) df <- dplyr::mutate(df, egfr = ckdepi_2021_egfr(SEXF, AGE, CREAT))