View source: R/weight_status.R
weight_status | R Documentation |
Allows users to determine weight status from body mass index (BMI). The
function is designed to classify adult weight status, with default settings
yielding weight classes defined by the Centers for Disease Control and
Prevention (see reference below). Alternatively, the function can be used as
a wrapper for get_BMI_percentile
to obtain classifications for
youth.
weight_status(BMI = NULL, breaks = c(-Inf, 18.5, 25, 30, 35, 40, Inf), labels = c("Underweight", "Healthy Weight", "Overweight", "Class 1 Obese", "Class 2 Obese", "Class 3 Obese"), right = FALSE, youth = FALSE, ...) #get_BMI_percentile(weight_kg, height_cm, age_yrs = NULL, age_mos = NULL, #sex = c("Male", "Female"), BMI = NULL, df = NULL, #output = c("percentile", "classification", "both", "summary"))
BMI |
numeric. The participant body mass index |
breaks |
numeric vector. The boundaries for each weight class; passed to
|
labels |
character vector. The labels for each weight class; passed to
|
right |
logical. See |
youth |
logical. Use function as a wrapper for
|
... |
Arguments passed to |
a factor reflecting weight status
https://www.cdc.gov/obesity/adult/defining.html
weight_status(17:42)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.