bfan | R Documentation |
Modification of the bodyfat
dataset for classification.
The response bfan
is a factor indicating a body fat value above the normal
range.
The variable bodyfat
was dropped for convenience, and two new variables
bmi
(body mass index, in kg/m^2) and bmi2
(alternate body mass index,
in kg^1.2/m^3.3) were computed (see examples below).
bfan
A data frame with 246 rows and 16 columns:
Body fat above normal range
Age (years)
Weight (kg)
Height (cm)
Neck circumference (cm)
Chest circumference (cm)
Abdomen circumference (cm)
Hip circumference (cm)
Thigh circumference (cm)
Knee circumference (cm)
Ankle circumference (cm)
Biceps (extended) circumference (cm)
Forearm circumference (cm)
Wrist circumference (cm)
Body mass index (kg/m2)
Alternate body mass index
See bodyfat
and bodyfat.raw
for details.
StatLib Datasets Archive: https://lib.stat.cmu.edu/datasets/bodyfat.
Penrose, K., Nelson, A. and Fisher, A. (1985). Generalized Body Composition Prediction Equation for Men Using Simple Measurement Techniques. Medicine and Science in Sports and Exercise, 17(2), 189. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1249/00005768-198504000-00037")}.
bodyfat
, bodyfat.raw
bfan <- bodyfat
# Body fat above normal
bfan[1] <- factor(bfan$bodyfat > 24 , # levels = c('FALSE', 'TRUE'),
labels = c('No', 'Yes'))
names(bfan)[1] <- "bfan"
bfan$bmi <- with(bfan, weight/(height/100)^2)
bfan$bmi2 <- with(bfan, weight^1.2/(height/100)^3.3)
fit <- glm(bfan ~ abdomen, family = binomial, data = bfan)
summary(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.