0
$\begingroup$

I wanted to ask if anyone knows how to obtain in a table the decomposition of the effect of the variables of a SEM model. I have made the model with the sem function of the lavaan package, but I don't know how to obtain the total, direct and indirect effects using the same package.

Thank you very much for your help.

$\endgroup$

1 Answer 1

0
$\begingroup$

You can use the := operator in lavaan syntax to define functions of estimated parameters, such as indirect and total effects. There is an example of this on the lavaan website's tutorial section:

https://lavaan.ugent.be/tutorial/mediation.html

The "new" parameters then appear in your summary() or parameterEstimates() output, along with (by default) a delta-method SE and associated normal-theory z test.

$\endgroup$
1
  • $\begingroup$ Thank you so much Terrence! $\endgroup$ Jul 26, 2022 at 9:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.