Topic 16 Graphical Structure of Mediation
Learning Goals
- Relate d-separation ideas to exchangeability conditions for mediation
- MEDI1: Formulate research questions that can be answered via mediation analysis
Exercises
Background
Consider the following causal diagram representing variables important in mediation analysis:
Let C={C1,C2,C3}. When trying to estimate mediation effects (CDE, NDEs, NIEs), the following 4 exchangeability assumptions are necessary:
- Yam⊥⊥A∣C
- Yam⊥⊥M∣A,C
- Ma⊥⊥A∣C
- Yam⊥⊥Ma∗∣C
These 4 exchangeability assumptions can be expressed as the following 4 graphical assumptions:
- No unmeasured confounders of the treatment-outcome relationship (A and Y).
- No unmeasured confounders of the mediator-outcome relationship (M and Y).
- No unmeasured confounders of the treatment-mediator relationship (A and M).
- No confounder of the mediator-outcome relationship is affected by treatment (arrows from A to C2).
When these 4 assumptions hold, the CDE, NDEs, and NIEs can be estimated from data, and we can use models such as the regression models below to estimate them. (C={C1,C2,C3})
E[Y∣A,M,C]=θ0+θ1A+θ2M+θ3AM+θ′4C E[M∣A,C]=β0+β1A+β′2C
Exercise 1
Assumptions 1 and 2 are needed in order to estimate the controlled direct effect (CDE).
Using d-separation ideas, argue why Assumptions 1 and 2 must hold but why it is not necessary for Assumptions 3 and 4 to hold. Use the paths below from A to Y in your arguments.
(Note: All 4 assumptions must hold to estimate the natural direct and indirect effects. If you finish early, feel free to tackle exploring this graphically by looking at the M to Y and A to M paths below.)
## Path 1: A <- C1 -> Y
## Path 2: A -> Y
## Path 3: A <- C3 -> M -> Y
## Path 4: A <- C3 -> M <- C2 -> Y
## Path 5: A -> M -> Y
## Path 6: A -> M <- C2 -> Y
## Path 7: A -> C2 -> Y
## Path 8: A -> C2 -> M -> Y
## Path 1: A <- C1 -> Y <- M
## Path 2: A <- C1 -> Y <- C2 -> M
## Path 3: A -> Y <- M
## Path 4: A -> Y <- C2 -> M
## Path 5: A <- C3 -> M
## Path 6: A -> M
## Path 7: A -> C2 -> Y <- M
## Path 8: A -> C2 -> M
## Path 1: M <- A <- C1 -> Y
## Path 2: M <- A -> Y
## Path 3: M <- A -> C2 -> Y
## Path 4: M -> Y
## Path 5: M <- C3 -> A <- C1 -> Y
## Path 6: M <- C3 -> A -> Y
## Path 7: M <- C3 -> A -> C2 -> Y
## Path 8: M <- C2 <- A <- C1 -> Y
## Path 9: M <- C2 <- A -> Y
## Path 10: M <- C2 -> Y
Exercise 2
Under the exchangeability assumptions discussed above, we can use models such as the regression models below to estimate the CDE, NDE, and NIE. (C={C1,C2,C3}, and θ4,β2 are vectors of coefficients.) In particular, these models can be used as structural models to simulate the different potential outcomes needed to estimate these effects.
E[Y∣A,M,C]=θ0+θ1A+θ2M+θ3AM+θ′4C E[M∣A,C]=β0+β1A+β′2C
Given these models, derive expressions for CDE(m) and NDE(0).