Learn R Programming

mice (version 3.17.0)

nhanes2: NHANES example - mixed numerical and discrete variables

Description

A small data set with non-monotone missing values.

Arguments

Format

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

age

Age group (1=20-39, 2=40-59, 3=60+)

bmi

Body mass index (kg/m**2)

hyp

Hypertensive (1=no,2=yes)

chl

Total serum cholesterol (mg/dL)

Details

A small data set with missing data and mixed numerical and discrete variables. The data set nhanes is the same data set, but with all data treated as numerical.

See Also

nhanes

Examples

Run this code
# create 5 imputed data sets
imp <- mice(nhanes2)

# print the first imputed data set
complete(imp)

Run the code above in your browser using DataLab