estimate_lavaan: Estimate tidy_sem using 'lavaan'

Description Usage Arguments Value Examples

View source: R/syntax-estimate.R

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

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

Arguments

x

An object of class tidy_sem.

func

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

...

Additional parameters passed to the estimating function.

Value

An object of class lavaan.

Examples

1
2
3
4
5
library(lavaan)
model <- tidy_sem(iris, "\\.")
model <- measurement(model)
res <- estimate_lavaan(model)
summary(res)

tidySEM documentation built on Nov. 17, 2021, 1:07 a.m.