Learn R Programming

tidySEM (version 0.2.8)

estimate_lavaan: Estimate tidy_sem using 'lavaan'

Description

This function is a wrapper for the lavaan estimating functions. By default, the wrapper uses sem, but users can also specify lavaan, cfa, or growth.

Usage

estimate_lavaan(x, func = "sem", ...)

Value

An object of class lavaan.

Arguments

x

An object of class tidy_sem.

func

The lavaan modeling function to invoke, Default: 'sem'.

...

Additional parameters passed to the estimating function.

Examples

Run this code
library(lavaan)
model <- tidy_sem(iris, "\\.")
model <- measurement(model)
res <- estimate_lavaan(model)
summary(res)

Run the code above in your browser using DataLab