View source: R/calculate_ecv.R
calculate_ecv | R Documentation |
Calculates estimated extracellular volume based on available population-based regression equations (age, height, weight, sex). Formula described in Faucon et al. KI Rep. 2022. Comparison of different formulas suggests that the new formula provides more accurate results. The "Granerus" equations have been used previously in calculating single-sample iothalamate GFR and so this method is also available.
calculate_ecv(
age,
height,
weight,
sex,
weight_units = "kg",
height_units = "cm",
method = "Faucon"
)
age |
Age in years |
height |
Height (cm) |
weight |
Weight (kg) |
sex |
Sex (M/F) |
weight_units |
Weight units if not in cm |
height_units |
Height units if not in kg |
method |
ECV Formula (default = "Faucon"; also can use "Granerus") |
single value of ECV estimate in mL
calculate_ecv(age=85, sex = "m", height = 187, weight=85)
calculate_ecv(age=85, sex = "m", height = 187, weight=85, method="Granerus")
calculate_ecv(age=85, sex = "f", height = 187, weight=85, method="Granerus")
n=5
df_test <-
tibble(age=rnorm(n,50),
height_cm=rnorm(n,167),
height_m=rnorm(n,1.67),
weight_kg=rnorm(n,80),
sex=c(sample(c("M","F"), n, replace = T))
)
df_test |>
mutate(calculate_ecv(age=age,
height=height_cm,
weight=weight_kg,
sex=sex))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.