| 07complete | R Documentation |
This function extracts several multiply imputed data.frames
from an object of mi-class.
complete(y, m, ...)
y |
An object of |
m |
If y is an object of |
... |
Other arguments, not currently utilized |
Several functions within mi use complete, although the only reason
in principle why a user should need to call complete is to create
data.frames to export to another program. For analysis, it is
better to use the pool function, although currently pool
might not offer all the necessary functionality.
If y is an object of mi-class and m > 1, a list
of m data.frames is returned. Otherwise, a single data.frame
is returned.
Ben Goodrich and Jonathan Kropko, for this version, based on earlier versions written by Yu-Sung Su, Masanao Yajima, Maria Grazia Pittau, Jennifer Hill, and Andrew Gelman.
mi-class
if(!exists("imputations", env = .GlobalEnv)) {
imputations <- mi:::imputations # cached from example("mi-package")
}
data.frames <- complete(imputations, 3)
lapply(data.frames, summary)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.