07complete {mi} | R Documentation |
Extract the Completed Data
Description
This function extracts several multiply imputed data.frame
s
from an object of mi-class
.
Usage
complete(y, m, ...)
Arguments
y |
An object of |
m |
If y is an object of |
... |
Other arguments, not currently utilized |
Details
Several functions within mi use complete
, although the only reason
in principle why a user should need to call complete
is to create
data.frame
s 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.
Value
If y is an object of mi-class
and m > 1
, a list
of m
data.frame
s is returned. Otherwise, a single data.frame
is returned.
Author(s)
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.
See Also
Examples
if(!exists("imputations", env = .GlobalEnv)) {
imputations <- mi:::imputations # cached from example("mi-package")
}
data.frames <- complete(imputations, 3)
lapply(data.frames, summary)