median_x_for_y | R Documentation |
Calculate median weight, height, and BMI for age/height for infants and children using CDC Growth Charts data and equations.
median_weight_for_age(
age,
age_units = c("years", "months", "weeks", "days"),
sex
)
median_height_for_age(
age,
age_units = c("years", "months", "weeks", "days"),
sex
)
median_bmi_for_age(age, age_units = c("years", "months", "weeks", "days"), sex)
median_weight_for_height(
height,
height_units = c("centimetres", "metres", "feet", "inches"),
sex,
population = c("infants", "children")
)
age |
A numeric vector of ages in the unit specified in |
age_units |
A character string specifying the units of all |
sex |
A character vector specifying patient sex. Either |
height |
A numeric vector of heights in the unit specified in |
height_units |
A character string specifying the units of all |
population |
A character string specifying the population table to use
for |
A numeric vector of median weight, height, or BMI values for the given ages/heights.
Functions to calculate growth metrics: pct_weight_for_age, pct_height_for_age, pct_bmi_for_age, pct_weight_for_height
CDC Growth Charts data: weight_for_age, height_for_age, bmi_for_age_children, weight_for_height_infants, weight_for_height_children
median_weight_for_age(3.5, "months", sex = "male")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.