| mplus2lavaan {lavaan} | R Documentation |
Read in an Mplus input file, convert it to lavaan syntax, and fit the model.
mplus2lavaan(inpfile)
inpfile |
The filename (including a full path) of the Mplus input file. The data (as referred to in the Mplus input file) should be in the same directory as the Mplus input file. |
A list with two elements: mplus.inp contains the input data, a title,
the variable names, and the converted (lavaan) model syntax; lav.out
contains the fitted lavaan object.
Michael Hallquist
## Not run:
out <- mplus2lavaan("ex5.1.inp")
summary(out$lav.out)
## End(Not run)