Learn R Programming

UsingR (version 2.0-7)

kid.weights: Weight and height measurement for a sample of U.S. children

Description

A sample from the data presented in the NHANES III survey (https://www.cdc.gov/nchs/nhanes.htm). This survey is used to form the CDC Growth Charts (https://www.cdc.gov/growthcharts/) for children.

Usage

data(kid.weights)

Arguments

Format

A data frame with 250 observations on the following 4 variables.

age

Age in months

weight

weight in pounds

height

height in inches

gender

Male of Female

Examples

Run this code
# NOT RUN {
data(kid.weights)
attach(kid.weights)
plot(weight,height,pch=as.character(gender))
## find the BMI -- body mass index
m.ht = height*2.54/100        # 2.54 cm per inch
m.wt = weight / 2.2046        # 2.2046 lbs. per kg
bmi = m.wt/m.ht^2
hist(bmi)
# }

Run the code above in your browser using DataLab