Writes the imptuted datasets to file from a run of
write.amelia(obj, separate = TRUE, file.stem, extension = NULL, format = "csv", impvar = "imp", orig.data = TRUE, …)
an object of class "amelia"; typically output from the
logical variable. If
TRUE (default), the
imputed datasets will be written to separate files, whose names come
extension arguments. If
the imputations are stacked and written as a single file.
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.
the extension of the filename. This is simply what
file.stem and the imputation number.
one of the following output formats:
table. See details.
the name of imputation number variable written to the
stacked dataset when
logical variable indicating whether the original,
unimputed dataset should be included in the stacked dataset when
further arguments for the
write.amelia writes the imputed datasets to a file or a set of files
using one of the following functions:
write.table. You can pass arguments to
these functions from
TRUE, each imputed dataset is written
to its own file. If you were to set
"outdata" and the
".csv" , then the
resulting filename of the written files will be
outdata1.csv outdata2.csv outdata3.csv ...
and so on.
FALSE, the function adds a variable
impvar to each dataset which indicates the imputed
dataset to which the row belongs. Then, each of the datasets are
stacked together to create one dataset. If
then the original, unimputed dataset is included at the top of the
stack, with its imputation number set to 0.