tidy_sem_model: Build SEM model

Description Usage Arguments Value

Description

Specify a latent variable model, to be used prior to tidy_sem

Usage

1

Arguments

.data

Data frame with variables of interest

...

Model formulas following a slightly modified version of lavaan model syntax (see lavParseModelString). Instead of taking only a single character string representing the specified model (as would be done with lavaan), this function accepts unquoted formulas that use commas between variable/equation lines instead of line breaks (note: line breaks may still be used for aesthetic/spacing purposes, but they otherwise have no affect on how the model is processed).

Value

Returns the provided data with a "model" attribute


mkearney/tidyversity documentation built on May 28, 2019, 2:32 a.m.