Extract variables names from a fitted lavaan object.
Usage
lavNames(object, type = "ov", ...)
Arguments
object
An object of class .
type
Character. The type of variables whose names should be extracted.
See details for a complete list.
...
Additional selection variables. For example "group = 2L"
(in a multiple-group analysis) only considers the variables included
in the model for the second group.
Details
The order of the variable names, as returned by lavNames
determines the order in which the variables are listed in the parameter
table, and therefore also in the summary output. The following variable types are available:
"ov": observed variables
"ov.x": (pure) exogenous observed variables (no mediators)
"ov.nox": non-exogenous observed variables
"ov.model": modelled observed variables (joint vs conditional)
"ov.y": (pure) endogenous variables (dependent only) (no mediators)
"ov.num": numeric observed variables
"ov.ord": ordinal observed variables
"ov.ind": observed indicators of latent variables
"ov.orphan": lonely observed variables (only intercepts/variancesappear in the model syntax)
"ov.interaction": interaction terms (defined by the colon operator)