Hi everyone,
I have a question about mediation analysis. I’ve been using the mediate command to action this. I have the exposure variable which is binary and outcome variable which is also binary but the mediator variable is categorical. When I tried in Stata following this sort of formula that I found online: mediate (wellbeing, logit) (bonotonin, logit) (exercise), I get 'varlist not allowed'. I did the same thing but with dummy data with all binary variables and got the same 'varlist not allowed'. Is there anyway to resolve this issue?
I followed the casual mediation analysis from this website: https://www.stata.com/features/overv...tion-analysis/
I have a question about mediation analysis. I’ve been using the mediate command to action this. I have the exposure variable which is binary and outcome variable which is also binary but the mediator variable is categorical. When I tried in Stata following this sort of formula that I found online: mediate (wellbeing, logit) (bonotonin, logit) (exercise), I get 'varlist not allowed'. I did the same thing but with dummy data with all binary variables and got the same 'varlist not allowed'. Is there anyway to resolve this issue?
I followed the casual mediation analysis from this website: https://www.stata.com/features/overv...tion-analysis/