calculate_ecv: Estimate Extracellular Volume

View source: R/calculate_ecv.R

calculate_ecvR Documentation

Estimate Extracellular Volume

Description

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.

Usage

calculate_ecv(
  age,
  height,
  weight,
  sex,
  weight_units = "kg",
  height_units = "cm",
  method = "Faucon"
)

Arguments

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")

Value

single value of ECV estimate in mL

Examples

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))

JMLuther/tabletools documentation built on April 14, 2025, 3:09 a.m.