mediation analysis with all binary variables in lavaan package

Hello, all
I'm trying to do moderated mediation analyses by using the lavaan package. My variables, including outcome, mediator, moderator, and the independent variable are all binary.
Can anyone give me some suggestions on coding?
I have read some materials which relate to continous variables.
Many thanks

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.