write.mi: Writes mi impuations to file

Description Usage Arguments Details Author(s) References See Also Examples

Description

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

Usage

1
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

1
2
3
4
5
    midata1.csv
    midata2.csv
    omidata3.csv
    ...
  

Author(s)

Yu-Sung Su suyusung@tsinghua.edu.cn,

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

1
2
3
# data(CHAIN)
# IMP <- mi(CHAIN)
# write.mi(IMP)

Example output

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.

mi documentation built on May 2, 2019, 4:43 p.m.

Related to write.mi in mi...