estimate_lavaan: Estimate tidy_sem using 'lavaan'

View source: R/syntax-estimate.R

estimate_lavaanR Documentation

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", ...)

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

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

cjvanlissa/tidySEM documentation built on March 16, 2024, 6:35 a.m.