mi.completed {mi} | R Documentation |
Function to return completed data set from result of mi program.
## S4 method for signature 'mi': mi.completed(object) ## S4 method for signature 'mi': mi.data.frame(object, m = 1)
object |
mi object containing a multiply imputed data set.
The mi object is generated by the mi function. |
m |
Index of the imputed data set. The default is 1. |
A data set or a list of datasets with the missing data imputed.
Yu-Sung Su ys463@columbia.edu Masanao Yajima yajima@stat.columbia.edu, Andrew Gelman gelman@stat.columbia.edu
Andrew Gelman and M. Grazia Pittau. “A flexible program for missing-data imputation and model checking”. Technical report. Columbia University, New York;
Andrew Gelman and Jennifer Hill. (2007). Data Analysis Using Regression and Multilevel/Hierarchical Models. Cambridge University Press.
data(CHAIN) imp <- mi (CHAIN, n.iter=6) # get all imputed dataset imputed.matrix <- mi.completed (imp) # get the 3rd chain of the imputed dataset imputed.data.frame <- mi.data.frame(imp, m=3)