Saves objects of class mitml in the .sav format used by the statistical software SPSS (IBM Corp., 2013).
The function serves as a front-end for write_sav from the haven package.
Usage
write.mitmlSAV(x, filename)
Arguments
x
An object of class mitml or mitml.list (i.e., either produced by panImpute/jomoImpute or mitmlComplete).
filename
Name of the destination file, to be specified with or without file extension. The file extension (.sav) is appended if necessary.
Details
This function exports multiply imputed data sets to a single .sav file, in which an Imputation_ variable separates the original data and the various imputed data sets.
Thus, write.mitmlSAV exports directly to the native SPSS format.
Alternatively, write.mitmlSPSS may be used for creating separate text and SPSS syntax files; an option that offers more control over the data format.
Value
None (invisible NULL).
Author(s)
Simon Grund
References
IBM Corp. (2013). IBM SPSS Statistics for Windows, Version 22.0. Armonk, NY: IBM Corp