
Modification of Diet in Renal Disease eGFR calculation
mdrd_egfr.Rd
Modification of Diet in Renal Disease eGFR calculation
Examples
e <- mdrd_egfr(TRUE, 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 = mdrd_egfr(SEXF, RACEB, AGE, CREAT))
df
#> SEXF RACEB AGE CREAT egfr
#> 1 TRUE FALSE 24 1 68.11756
#> 2 FALSE FALSE 24 1 91.80264
#> 3 TRUE TRUE 23 2 37.42185
#> 4 FALSE FALSE 24 1 91.80264