Read in an Mplus input file, convert it to lavaan syntax, and fit the model.
mplus2lavaan(inpfile, run = TRUE)
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.
Whether to run the specified Mplus input syntax (
lavaan object with the fitted results of the Mplus model. The parsed
and converted Mplus syntax is preserved in the
@external slot of the
object in the
$mplus.inp element. If
list of converted
syntax is returned.
## Not run: out <- mplus2lavaan("ex5.1.inp") summary(out) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.