Learn R Programming

simsem (version 0.2-8)

runLavaan: Run data by the model object by the lavaan package

Description

Transform model object (SimModel) to lavaan script, run the obtained data, and make model output object (SimModelOut)

Usage

runLavaan(object, Data, miss="fiml", estimator="ML")

Arguments

object
The model object (SimModel)
Data
The data to be analyzed
miss
The method to handle missing data in lavaan. The default is full information maximum likelihood.
estimator
The method of estimation. The default is maximum likelihood (ML).

Value

  • The model output object that saves parameter estimates, standard errors, and fit indices.

Examples

Run this code
# No example

Run the code above in your browser using DataLab