Description Usage Arguments Value Author(s) References See Also Examples
Function to return completed data set from result of mi program.
1 2 3 4 | ## 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 |
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 suyusung@tsinghua.edu.cn Masanao Yajima yajima@stat.columbia.edu, Andrew Gelman gelman@stat.columbia.edu
Yu-Sung Su, Andrew Gelman, Jennifer Hill, Masanao Yajima. Forthcoming. “Multiple Imputation with Diagnostics (mi) in R: Opening Windows into the Black Box”. Journal of Statistical Software.
Andrew Gelman and Jennifer Hill. (2007). Data Analysis Using Regression and Multilevel/Hierarchical Models. Cambridge University Press.
1 2 3 4 5 6 | #data(CHAIN)
#IMP <- mi (CHAIN, n.iter=6, add.noise=FALSE)
### 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)
|
Loading required package: Matrix
Loading required package: stats4
mi (Version 1.0, packaged: 2015-04-16 14:03:10 UTC; goodrich)
mi Copyright (C) 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 Trustees of Columbia University
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under the General Public License version 2 or later.
Execute RShowDoc('COPYING') for details.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.