mplus2lavaan {lavaan}R Documentation

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.

Author(s)

Michael Hallquist

See Also

lavExport.

Examples

## Not run: 
out <- mplus2lavaan("ex5.1.inp")
summary(out$lav.out)

## End(Not run)

[Package lavaan version 0.5-18 Index]