Appendix A — Appendix: Stochastic direct and indirect effects
A.1 Definition of the effects
Consider the following directed acyclic graph.
A.2 Motivation for stochastic interventions
- So far we have discussed controlled, natural, and interventional (in)direct effects
- These effects require that
- They are defined only for binary exposures
- What can we do when the positivity assumption does not hold or the exposure is continuous?
- Solution: We can use stochastic effects
A.3 Definition of stochastic effects
There are two possible ways of defining stochastic effects:
- Consider the effect of an intervention where the exposure is drawn from a distribution
- For example incremental propensity score interventions
- Consider the effect of an intervention where the post-intervention exposure is a function of the actually received exposure
- For example modified treatment policies
- In both cases
is a non-deterministic intervention, thus the name stochastic intervention
A.3.1 Example: incremental propensity score interventions (IPSI)
See (1)
Definition of the intervention
- Assume
is binary, and is the propensity score - Consider an intervention in which each individual receives the intervention with probability
, equal to - e.g., draw the post-intervention exposure from a Bernoulli variable with probability
- The value
is user given - Let
denote the post-intervention exposure distribution - Some algebra shows that
is an odds ratio comparing the pre- and post-intervention exposure distributions - Interpretation: what would happen in a world where the odds of receiving treatment is increased by
- Let
denote the outcome in this hypothetical world
A.3.1.1 Illustrative application for IPSIs
- Consider the effect of participation in sports on children’s BMI
- Mediation through snacking, exercising, etc.
- Intervention: for each individual, increase the odds of participating in sports by
- The post-intervention exposure is a draw
from a Bernoulli distribution with probability
A.3.2 Example: modified treatment policies (MTP)
See (2)
Definition of the intervention
- Consider a continuous exposure
taking values in the real numbers - Consider an intervention that assigns exposure as
- Example:
is pollution measured as and you are interested in an intervention that reduces concentration by some amount
A.3.3 Mediation analysis for stochastic interventions
- The total effect of an IPSI can be computed as a contrast of the outcome under intervention vs no intervention:
- Recall the NPSEM
- From this we have
Thus, we have
andLet us introduce the counterfactual
, interpreted as the outcome observed in a world where the intervention on is performed but the mediator is fixed at the value it would have taken under no intervention:
- Then we can decompose the total effect into:
A.4 Identification assumptions
- Confounder assumptions:
- No confounder of
affected by - Positivity assumptions:
- If
then - If
then
- If
Under these assumptions, stochastic effects are identified as follows
- The indirect effect can be identified as follows
- The direct effect can be identified as follows
-
Let’s dissect the formula for the indirect effect in R:
-
First, fit regressions of the outcome on
and : -
Get predictions fixing
for all possible values -
Compute [] for each value
-
Estimate the propensity score
and evaluate the post-intervention propensity score -
What do the post-intervention propensity scores look like?
A.5 What are the odds of exposure under intervention vs real world?
#> Min. 1st Qu. Median Mean 3rd Qu. Max.
#> 2 2 2 2 2 2
- Compute the sum
-
The average of this value is the indirect effect
The direct effect is
-
Which can be computed as
A.6 Summary
- Stochastic (in)direct effects
- Relax the positivity assumption
- Can be defined for non-binary exposures
- Do not require a cross-world assumption
- Still require the absence of intermediate confounders
- But, compared to the NDE and NIE, we can design a randomized study where identifiability assumptions hold, at least in principle
- There is a version of these effects that can accommodate intermediate confounders (3)
-
R
implementation to be released soon…stay tuned!