Hello all, I hope you can help me with these questions.
I am developing a mediation analysis using the mediation package in R.
I need to analyze the influence of perceived learning (Mediating Variable –MV-) in the generation of pro-environmental outcomes (Dependent Variables DV)
I have different Independent Variables (IV) to test. One is numeric and another one is categorical. I have already developed the mediating analysis with the numeric IV and I got the results.
However, the motivation IV I have is categorical and has 4 values (Learning, Adventure, Wild, Social).
Do you know if creating dummies variables for this IV is a correct procedure to then run, the mediation analysis?
If the above is not possible, do you think that ANOVAs could be used as a substitute for regression models for mediation analysis?
If yes, is it correct to do the following?
ANOVA to see the relation between IV and DV
ANOVA to see the relation between MV and DV
But… How to analyze the relation: IV+MV DV?
Thanks in advance for your advice.