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
Post an Answer
Sign In to Answer
4 Answers
Meray Medhat
if the categorial is the dependent you can use multivariate or univariate logestic regression
Babak Khoshnood
I agree with everything David Joubert said. Alternative software is Mplus (probably the most versatile) and Stata that can do quite a few of the models you may want to consider including path analysis and full SEM . I don't know if you are interested but Mplus is also good for latent growth modeling.
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.
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.
W. Raed
Bootstrapping methods are recommended to assess the significance of indirect effects, as they do not rely on the normality assumption.
Software such as SPSS (PROCESS macro), R (lavaan), or Python can be used depending on the complexity of the model and sample size.