Converts the regression
models in a lavaan
-class model to
an lm_from_lavaan_list
-class
object.
Arguments
- fit
A
lavaan
-class object, usually the output oflavaan::lavaan()
or its wrappers.
Value
An
lm_from_lavaan_list
-class object,
which is a list of lm_from_lavaan
objects. It has a predict
-method
(predict.lm_from_lavaan_list()
) for
computing the predicted values from
one variable to another.
Details
It identifies all dependent
variables in a lavaan
model and
creates an lm_from_lavaan
-class
object for each of them.
This is an advanced helper used by
plot.cond_indirect_effects()
.
Exported for advanced users and
developers.