How can I do a mediation model with one categorical and two continuous variables?

How can I do a mediation model with one categorical and two continuous variables
Psychology Statistics
0
David Joubert
You have to say what variables are where in the model. Is the categorical variable the predictor, mediator or outcome? How many levels does the categorical variable have?
Generally speaking, SEM software like lavaan can handle continuous, binary or ordinal variable, either exo- or endogeneous. For pure categorical variables, it is better to break it down into multiple dichotomous variables. 
If you don't like writing syntax like in R, there are implementations of mediation, SEM and path analysis in some of the libraries in Jamovi. A mediation option is also available in JASP if you prefer. Both software are free and easy to use. 

Post an Answer

Sign In to Answer