zBMI | R Documentation |
The function returns the age (measured in months), zBMI, and zBMI category given the data.
Score_zBMI(data,age_month=FALSE)
data |
The input data |
age_month |
An indicator whether age measured in months is given or not. If age_month=FALSE, then the date of birth (DEM2AGE_YEAR, DEM2AGE_MONTH, DEM2AGE_Date) and survey date (StartDate) are required. If age_month=TRUE, convert the age so that it is measured in the unit of month. |
The data needs the following variables (The coded values are showed after the question text):
ageinmonth (Needed if age_month=FALSE)
The age measured in the unit of month
DEM2AGE_YEAR (Needed if age_month=TRUE)
What year were you born in?
(1) 1920; (2) 1921; ... (90) 2009; (99) Choose not to answer
DEM2AGE_MONTH (Needed if age_month=TRUE)
What month were you born in?
(1) Jan; (2) Feb; ... (12) Dec; (13) Choose not to answer
DEM2AGE_Date (Needed if age_month=TRUE)
What day were you born on?
(1) 1; (2) 2; ... (31) 31; (32) Choose not to answer
StartDate (Needed if age_month=TRUE)
System generated time of filling the survey, must have the format "mm/dd/yy hh:mm"
DEM12GENDER
What is your gender?
(1) Male; (2) Female; (3) Other; (4) Choose not to answer
BMI
Computed from height and weight
zBMI |
A continuous value |
zBMI_Category |
A categorical value in one of the four levels: Underweight, Normal, Overweight, Obese |
Wangcheng Yan, Wenjun Zhou
https://www.cdc.gov/growthcharts/percentile_data_files.htm
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.