
Calculates eGFR using the CKDEPI 2021 creatinine equation
ckdepi_2021_egfr.Rd
Calculates eGFR using the CKDEPI 2021 creatinine equation
Examples
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))
df
#> SEXF RACEB AGE CREAT egfr
#> 1 TRUE FALSE 24 1 80.67934
#> 2 FALSE FALSE 24 1 107.78422
#> 3 TRUE TRUE 23 2 35.33681
#> 4 FALSE FALSE 24 1 107.78422