Generate syntax for a measurement model for latent variables. This function relies on add_paths to generate syntax.

measurement(x, ...)

Arguments

x

An object for which a method exists, including tidy_sem (generated using dictionary, or data.frame (for which dictionary will be run first).

...

Additional parameters passed to add_paths.

Value

An object of class tidy_sem.

Examples

dict <- tidy_sem(c("bfi_1", "bfi_2", "bfi_3", "bfi_4", "bfi_5")) measurement(dict)
#> A tidy_sem object #> v $dictionary #> o $data #> v $syntax