| write.mi {mi} | R Documentation |
Writes the imputed datasets to file for the mi object
into the csv, dta, and table format.
write.mi(object, format = c("csv", "dta", "table"), ...)
object |
mi object |
format |
output format, only “csv”, “dta” and “table” format are supported. |
... |
further arguments for write functions |
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
midata1.csv
midata2.csv
omidata3.csv
...
Yu-Sung Su ys463@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.
write.csv, write.table, write.dta
# data(CHAIN) # IMP <- mi(CHAIN) # write.mi(IMP)