Learn R Programming

mi (version 0.10-2)

write.mi: Writes mi impuations to file

Description

Writes the imputed datasets to file for the mi object into the csv, dta, and table format.

Usage

write.mi(object, format = c("csv", "dta", "table"), ...)

Arguments

object
mi object
format
output format, only csv, dta and table format are supported.
...
further arguments for write functions

Details

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 ...

References

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).

See Also

write.csv, write.table, write.dta

Examples

Run this code
# data(CHAIN)
# IMP <- mi(CHAIN)
# write.mi(IMP)

Run the code above in your browser using DataLab