mids
object to Mplusmids
object into a format recognized by
Mplus, and writes the data and the Mplus input filesmids2mplus(imp, file.prefix = "imp", path = getwd(), sep = "\t",
dec = ".", silent = FALSE)
imp
argument is an object of class
mids
, typically produced by the mice()
function.R
working directory.NULL
.mids
object to Mplus
. The function writes the
multiple imputation datasets, the file that contains the
names of the multiple imputation data sets and an
Mplus
input file. The Mplus
input file has
the proper file names, so in principle it should run and
read the data without alteration. Mplus
will
recognize the data set as a multiply imputed data set, and
do automatic pooling in procedures where that is supported.mids
, mids2spss