run_lavaan | R Documentation |
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
.
run_lavaan(x, ...)
x |
An object for which a method exists. |
... |
Parameters passed on to other functions. |
Returns a lavaan object.
df <- iris[1:3]
names(df) <- paste0("X_", 1:3)
run_lavaan(measurement(tidy_sem(df), meanstructure = TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.