aalfons / robmed

Perform mediation analysis via a fast-and-robust bootstrap test, as well as various other methods
GNU General Public License v3.0
6 stars 0 forks source link

Multiple X variables that are mediated #20

Closed aalfons closed 3 years ago

aalfons commented 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

aalfons commented 3 years ago

This can be done more general to allow any number of independent variables and any number of hypothesized mediators.