grp_bmi: Creates Obesity groups from numeric BMI values

Description Usage Arguments Author(s) References Examples

View source: R/grp_bmi.R

Description

Takes a vector of numeric Body Mass Index values and produces a new vector of grouped obesity values. The new variable is created as an ordered factor.

Usage

1
grp_bmi(x, depth = "full", style = "name")

Arguments

x

Numeric vector of Body Mass Index values

depth

Select the level of detail to be mapped to. 'full' [default] contains three levels within the "Obese" factor level, in line with the WHO Obesity classification. 'part' produces a simplified classification, with a single "Obese" category.

style

Select the presentation of the category labels. 'name' [default] are the standard WHO Obesity labels: "Underweight", "Healthy Weight" etc. 'num' gives the numeric ranges, as character labels, e.g. "<18.5", "18.5-24.9" etc.

Author(s)

Julian Collins

References

https://www.nice.org.uk/guidance/cg189/chapter/1-Recommendations#identification-and-classification-of-overweight-and-obesity

Examples

1
2
3
4
5
# numeric BMI values
data <- rnorm(10, mean = 30, sd = 5)

# create new ordered factor column giving corresponding obesity group values
bmi_groups <- grp_bmi(data)

KHP-IDEO/rIDEO documentation built on Aug. 11, 2019, 4:29 p.m.