head(make.where(nhanes), 3)
# create & analyse synthetic data
where <- make.where(nhanes2, "all")
imp <- mice(nhanes2,
m = 10, where = where,
print = FALSE, seed = 123
)
fit <- with(imp, lm(chl ~ bmi + age + hyp))
summary(pool.syn(fit))
Run the code above in your browser using DataLab