Description Usage Arguments Details Author(s) References See Also Examples
Writes the imputed datasets to file for the mi
object
into the csv
, dta
, and table
format.
1 |
object |
|
format |
output format, only “csv”, “dta” and “table” format are supported. |
... |
further arguments for |
write.mi
write each imputed dataset to a file in one of the three formats: csv
,
dta
and table
, using write.csv
, write.dta
and write.table
repectively.
The output files should be
1 2 3 4 5 | midata1.csv
midata2.csv
omidata3.csv
...
|
Yu-Sung Su suyusung@tsinghua.edu.cn,
Yu-Sung Su, Andrew Gelman, Jennifer Hill, Masanao Yajima. (2011). “Multiple Imputation with Diagnostics (mi) in R: Opening Windows into the Black Box”. Journal of Statistical Software 45(2).
write.csv
, write.table
, write.dta
1 2 3 | # data(CHAIN)
# IMP <- mi(CHAIN)
# write.mi(IMP)
|
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.