write.amelia {Amelia}R Documentation

Write Amelia imputations to file

Description

Writes the imptuted datasets to file from a run of amelia.

Usage

write.amelia(obj, file.stem, extension = NULL, format = "csv", ...)

Arguments

obj an object of class "amelia"; typically output from the function amelia.
file.stem the leading part of the filename to save to output The imputation number and extension will be added to complete the filename. This can include a directory path.
extension the extension of the filename. This is simply what follows file.stem and the imputation number.
format one of the following output formats: csv, dta or table. See details.
... further arguments for the write functions.

Details

write.amelia writes each of the imputed datasets to a file using one of the following functions: write.csv, write.dta, or write.table. You can pass arguments to these functions from write.amelia.

If you were to set file.stem to "outdata" and the extension to ".csv" , then the resulting filename of the written files will be

    outdata1.csv
    outdata2.csv
    outdata3.csv
    ...
and so on.

See Also

write.csv, write.table, write.dta


[Package Amelia version 1.2-2 Index]