NHANES | R Documentation |
This is a somewhat large interesting dataset, a data frame of 15 variables (columns) on 9575 persons (rows).
data(NHANES)
This data frame contains the following columns:
binary factor with levels No
and Yes
.
binary factor with levels No
and Yes
.
numeric vector giving age of the person in years.
a factor with levels Current
, Past
,
Nonsmoker
, and Unknown
.
numeric vector of \{0,1\}
codes giving the education level.
numeric vector of \{0,1\}
codes giving the
person's race.
numeric vector giving the weight in kilograms
numeric vector giving Body Mass Index, i.e.,
Weight/Height^2
where Height is in meters, and missings
(61% !) are coded as 0
originally.
numeric giving Dietary iron.
numeric giving albumin level in g/l.
numeric giving Serum iron in \mu
g/l.
numeric giving Total Iron Binding Capacity in \mu
g/l.
numeric giving Transferin Saturation which is just
100*serum.iron/TIBC
.
numeric giving Hemoglobin level.
a factor with levels F
(female) and M
(male).
data(NHANES)
summary(NHANES)
## Missing Data overview :
nNA <- sapply(NHANES, function(x)sum(is.na(x)))
cbind(nNA[nNA > 0])
# Which are just these 6 :
## Not run:
Diet.Iron 141
Albumin 252
Serum.Iron 1008
TIBC 853
Transferin 1019
Hemoglobin 759
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.