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 for the categorical IV is a correct procedure to then run the mediation analysis? This should be like this:
Regression to see the relation between IV vs. DV.
Regression to see the relation between MV vs. DV.
Mediation analysis to see the relation IV+DV vs. DV.
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 vs. DV.
ANOVA to see the relation between MV vs. DV.
But… How to analyze the relation: IV+MV vs. DV?
Thanks in advance for your advice.