ibind | R Documentation |
mids
objectsThis function combines two mids
objects x
and y
into a
single mids
object, with the objective of increasing the number of
imputed data sets. If the number of imputations in x
and y
are
m(x)
and m(y)
, then the combined object will have
m(x)+m(y)
imputations.
ibind(x, y)
x |
A |
y |
A |
The two mids
objects are required to
have the same underlying multiple imputation model and should
be fitted on the same data.
An S3 object of class mids
Karin Groothuis-Oudshoorn, Stef van Buuren
mids
data(nhanes)
imp1 <- mice(nhanes, m = 1, maxit = 2, print = FALSE)
imp1$m
imp2 <- mice(nhanes, m = 3, maxit = 3, print = FALSE)
imp2$m
imp12 <- ibind(imp1, imp2)
imp12$m
plot(imp12)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.