Learn R Programming

lavaan (version 0.5-17)

mplus2lavaan: mplus to lavaan converter

Description

Read in an Mplus input file, convert it to lavaan syntax, and fit the model.

Usage

mplus2lavaan(inpfile)

Arguments

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.

Value

  • 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.

See Also

lavExport.

Examples

Run this code
out <- mplus2lavaan("ex5.1.inp")
summary(out$lav.out)

Run the code above in your browser using DataLab