Table 4.
Equations used to simulate potential mediators and outcomes in step 2 of the G-computation marginal structural model for the illustrative examplea
| M model and Y model from step 1b: | ||||
|---|---|---|---|---|
| E (M|x, z; α) = αM + αX · x + αZ · z | ||||
| E (M|x, m, z; β) = βY + βX · x + βM · m + βXM · x · m + βZ · z | ||||
| Effect | Simulating Mc | Simulating Yc | ||
| TEd | Mx | = αM + αX · x + αZ · z + εMe | YTE | = βY + βX · x + βM · mx + βXM · x · mx + βZ · z + εYe |
| PDE | M0 | = αM + αX · 0 + αZ · z + εM | YPDE | = βY + βX · x + βM · m0 + βXM · x · m0 + βZ · z + εY |
| TIE | Mx | = αM + αX · x + αZ · z + εM | YTIE | = βY + βX · 1 + βM · mx + βXM · 1 · mx + βZ · z + εY |
| TDE | M1 | = αM + αX · 1 + αZ · z + εM | YTDE | = βY + βX · x + βM · m1 + βXM · x · m1 + βZ · z + εY |
| PIE | Mx | = αM + αX · x + αZ · z + εM | YPIE | = βY + βX · 0 + βM · mx + βXM · 0 · mx + βZ · z + εY |
| CDEM=m* | M* | = 4.8f | YCDE | = βY + βX · x + βM · m* + βXM · x · m* + βZ · z + εY |
| CDEsto | M′ | = E (M) + εM | YCDEsto | = βY + βX · x + βM · m′ + βXM · x · m′ + βZ · z + εY |
| RIE | M0 | = αM + αX · 0 + αZ · z + εM | YRIEg | = βY + 0 · x + 0 · mx + βXM · x · (m0 − m*) + βZ · z + εY |
| MIE | Mmedh | = αX · x + εM | YMIEg | = βY + 0 · x + 0 · mx + βXM · x · mmed + βZ · z + εY |
| PAI | M1 | = αM + αX · 1 + αZ · z + εM | YPAIg | = βY + 0 · x + 0 · mx + βXM · x · (m1 − m*) + βZ · z + εY |
Exposure: smoking (1=yes, 0=no); mediator: body mass index (5-unit increase); outcome: composite health score; covariates: age, gender, education, urbanicity, depression.
Variables used to fit the M model and Y model in step 1 were observed variables.
Lower case “x”, “z”, and “mx” represented specific values of the random variables intervention “X”, simulated covariate set “Z”, and potential mediator “Mx” respectively and the values can differ for different individuals. Intervention “X” was independent of the simulated covariate set “Z”.
TE: total effect, PDE: pure direct effect, TIE: total indirect effect, TDE: total direct effect, PIE: pure indirect effect, CDE: controlled direct effect (standard), CDEsto: stochastic controlled direct effect, RIE: reference interaction effect (referred to as “INTref” by VanderWeele), MIE: mediated interaction effect (referred to as “INTmed” by VanderWeele), PAI: portion attributable to interaction.
The root mean square error (RMSE) from the M model and the Y model in step 1 respectively.
The mediator was fixed at 4.8 (BMI=24).
To simulate YRIE, YMIE, and YPAI, we assigned zero for the coefficients for random variables intervention “X” and the potential mediator “Mx” but not the coefficients for the product term between these two variables to mimic “de-activating” the direct and indirect path from X to Y, leaving only a specific type of “interaction” between X and M to transmit the effect of X to Y.
The mediated interaction captures the interaction between X and a version of M that is due to X only. Thus, to simulate Mmed, the mediator M responds to no other determinants of M but X.