I am running the following regression and I am trying to compute the conditional indirect effects of X on L for three levels of my moderator variable (the interaction terms of x*L in the regression, where L is the moderator):
This paper explains how do this in SPSS but not sure how to replicate it in Stata.
Borau, S., El Akremi, A., Elgaaied-Gambier, L., Hamdi-Kidar, L., & Ranchoux, C. (2015). Analysing moderated mediation effects: Marketing applications. Recherche et Applications en Marketing (English Edition), 30(4), 88-128.
Code:
gsem (y <- L i.x i.x#c.L i.ethnic, mlogit)
- Mean – 1 standard deviation
- Mean
- Mean + 1 standard deviation
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float(y x L) . . . 0 0 13 . . . 0 0 3 . . . 3 0 16 . . . 0 0 11 . . . 0 1 15 . . . 0 0 2 . . . 2 0 16 . . . 0 0 11 . . . 0 0 16 . . . 0 0 16 . . . 0 0 13 . . . 0 0 16 . . . 0 0 11 . . . 0 0 12 . . . 1 0 11 . . . 0 0 14 . . . 3 1 15 . . . 0 0 11 . . . 1 0 3 . . . 0 0 11 . . . 0 1 5 . . . 0 1 15 . . . 0 0 11 . . . 0 0 5 . . . 1 0 3 . . . 2 1 16 . . . 1 0 14 . . . 0 1 5 . . . 1 0 8 . . . 0 0 8 . . . 1 0 15 . . . 0 0 12 . . . 0 0 11 . . . 3 0 16 . . . 1 0 11 . . . 0 0 12 . . . 0 0 11 . . . 0 0 11 . . . 0 0 11 . . . 0 0 11 . . . 0 0 0 . . . 0 0 16 . . . 0 0 14 . . . 0 0 11 . . . 0 0 11 . . . 0 1 13 . . . 3 1 13 . . . 3 0 16 . . . 0 0 12 . . . 0 0 11 end
Borau, S., El Akremi, A., Elgaaied-Gambier, L., Hamdi-Kidar, L., & Ranchoux, C. (2015). Analysing moderated mediation effects: Marketing applications. Recherche et Applications en Marketing (English Edition), 30(4), 88-128.
Comment