
## S3 method for class 'mids':
with(data, expr, \dots)
mids
, which stands for 'multiply imputed data set', typically
created by a call to function mice()
.~
operator, and the
terms, separated by +
operators, on the right. See the documentation
of lm
and <mids
object that was used in call
.m
components containing the individual fit objects from each of the m
complete data analyses.mice
: Multivariate Imputation by Chained Equations in R
.
Journal of Statistical Software, 45(3), 1-67.
mids
, mira
,
pool
, pool.compare
, pool.r.squared
imp <- mice(nhanes2)
fit1 <- with(data=imp,exp=lm(bmi~age+hyp+chl))
fit2 <- with(data=imp,exp=glm(hyp~age+bmi+chl,family=binomial))
anova.imp <- with(data=imp,exp=anova(lm(bmi~age+hyp+chl)))
Run the code above in your browser using DataLab