powered by
This convenience function runs objects for which a method exists using lavaan. It is intended for use with tidySEM, and passes the $syntax and $data elements of a tidy_sem object on to lavaan.
tidySEM
$syntax
$data
tidy_sem
lavaan
run_lavaan(x, ...)
Returns a lavaan object.
An object for which a method exists.
Parameters passed on to other functions.
df <- iris[1:3] names(df) <- paste0("X_", 1:3) run_lavaan(measurement(tidy_sem(df), meanstructure = TRUE))
Run the code above in your browser using DataLab