Closed aalfons closed 3 years ago
Implement a mediation model with multiple X variables that are mediated by one mediator M. The corresponding regression equations are:
M = i_M + a_1 X_1 + a_2 X_2 + a_3 X_3 + e_M Y = i_Y + b M + c_1 X_1 + c_2 X_2 + c_3 X_3 + e_Y
This can be done more general to allow any number of independent variables and any number of hypothesized mediators.
Implement a mediation model with multiple X variables that are mediated by one mediator M. The corresponding regression equations are:
M = i_M + a_1 X_1 + a_2 X_2 + a_3 X_3 + e_M Y = i_Y + b M + c_1 X_1 + c_2 X_2 + c_3 X_3 + e_Y