with.mids {mice} | R Documentation |
Performs a computation of each of imputed datasets in data.
## S3 method for class 'mids' with(data, expr, ...)
data |
An object of type |
expr |
An expression with a formula object, with the response on the left of
a |
... |
Additional parameters passed to 'expr' |
call |
The call that created the object. |
call1 |
The call that created the |
nmis |
An array containing the number of missing observations per column. |
analyses |
A list of |
formula |
The formula of the call that created the object. |
Karin Oudshoorn, 2009
van Buuren S and Groothuis-Oudshoorn K (2011).
mice
: Multivariate Imputation by Chained Equations in R
.
Journal of Statistical Software, 45(3), 1-67.
http://www.jstatsoft.org/v45/i03/
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)))