Description Usage Format Source Examples
A sample from the data presented in the NHANES III survey (http://www.cdc.gov/nchs/nhanes.htm). This survey is used to form the CDC Growth Charts (http://www.cdc.gov/growthcharts) for children.
1 |
A data frame with 250 observations on the following 4 variables.
Age in months
weight in pounds
height in inches
Male of Female
This data is extracted from the NHANES III survey: http://www.cdc.gov/nchs/nhanes.htm.
1 2 3 4 5 6 7 8 | 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.