Mediation and Time-Varying Treatments
Let be a binary treatment, be an outcome and be a mediator, a variable on a directed path from to The potential mediator is the value of the mediator under treatment and the nested potential outcome is the value of the outcome under treatment with the mediator set to Consistency states that and The cross-world potential outcome is the outcome under treatment with the mediator at the value it would take under treatment
Let be a treatment, be a mediator and be an outcome. The total effect of on is the average treatment effect, which decomposes into effects through and not through the mediator.
Let be a treatment, be a mediator and be a fixed value. The controlled direct effect at is the effect of the treatment when the mediator is held fixed at for every unit.
Let be a treatment and be a mediator. The natural direct effect is the effect of changing the treatment while holding the mediator at the value it would take under control for each unit.
Let be a treatment and be a mediator. The natural indirect effect is the effect of changing the mediator from its control value to its treated value while holding the treatment at treated for each unit.
The natural effects have the following properties:
- the total effect is the sum of the natural direct and indirect effects, without any assumption about interaction between and
- the controlled direct effect depends on when the treatment and mediator interact, and equals the natural direct effect when they do not;
- natural effects involve cross-world potential outcomes, which are never observed for any unit, so their identification requires assumptions that cannot be verified even by a randomised experiment.
Let be a treatment, be a mediator, be an outcome and be pre-treatment covariates. Sequential ignorability is the conjunction of the following assumptions:
- no unmeasured treatment-outcome confounding:
- no unmeasured mediator-outcome confounding:
- no unmeasured treatment-mediator confounding:
- no mediator-outcome confounder affected by treatment:
Let sequential ignorability, consistency and positivity hold. The mediation formula states that the mean cross-world potential outcome is identified by averaging the outcome regression over the mediator distribution under the other treatment.
The natural direct and indirect effects follow by substituting and For linear models and without interaction, the natural indirect effect is the product and the natural direct effect is
Let index time points. A time-varying treatment is a sequence of treatments, one at each time point. The treatment history up to time is and a treatment regime or strategy is a fixed sequence
Let be a time-varying treatment and be time-varying covariates measured at each time point before the treatment at that time point, with history The potential outcome is the outcome at the end of follow-up under the treatment regime
Let be a time-varying treatment with time-varying covariates Treatment-confounder feedback is the situation in which a covariate is affected by earlier treatments and also affects later treatments and the outcome. Under treatment-confounder feedback the covariate is both a confounder of later treatment and a mediator of earlier treatment, so adjusting for it in a regression blocks part of the effect of earlier treatment and conditions on a collider, whereas not adjusting for it leaves later treatment confounded. Standard regression adjustment is therefore biased, and the g-methods below are required.
Let be a time-varying treatment with time-varying covariates Sequential exchangeability is the assumption that at each time point the treatment is independent of the potential outcomes given the treatment and covariate histories.
Sequential positivity is the assumption that for every history that occurs, and sequential consistency is the assumption that
Let sequential exchangeability, positivity and consistency hold. The g-formula states that the mean potential outcome under a regime is identified by averaging the outcome regression over the covariate distribution that would arise under the regime, in which each covariate is drawn given the past covariates and the regime’s past treatments.
The g-formula reduces to the adjustment formula when and it is the truncated factorisation of the causal graph with the treatment factors removed.
Let the conditional distributions in the g-formula be given parametric models. The parametric g-formula is the method that fits these models, simulates covariate histories under the regime of interest from the fitted covariate models and averages the fitted outcome model over the simulated histories. The parametric g-formula has the following properties:
- it estimates the mean outcome under any regime, including dynamic regimes in which depends on
- it requires a correct model for every covariate at every time point, and misspecification accumulates over time;
- under the null hypothesis of no treatment effect the fitted models can still imply a non-zero effect, which is the g-null paradox.
Let be a time-varying treatment and be a function with parameter A marginal structural model (MSM) is a model for the mean potential outcome as a function of the regime.
For example, models a linear effect of the cumulative treatment. The model is marginal because it does not condition on the time-varying covariates, and structural because it is a model for potential outcomes.
Let be a time-varying treatment with time-varying covariates The inverse probability of treatment weight of a unit is the reciprocal of the probability of its observed treatment history given its covariate history, computed as a product over time points.
The stabilised weight replaces each numerator by which has mean one and reduces the variance.
Let be a marginal structural model and be the inverse probability of treatment weights. Inverse probability of treatment weighting (IPTW) is the method that estimates by fitting the model to the observed data with each unit weighted by Inverse probability of treatment weighting has the following properties:
- under sequential exchangeability, positivity and consistency the weighted population is a pseudo-population in which the treatment at each time point is independent of the covariate history, so the weighted association is the causal effect;
- it requires a correct model for the treatment at each time point but no model for the covariates or the outcome given the covariates;
- it is unstable when some weights are large, which occurs when some treatment histories are nearly deterministic given the covariates;
- it extends to censoring by multiplying by inverse probability of censoring weights.
Let be a time-varying treatment, denote no treatment after time and be a function with parameter and A structural nested mean model (SNMM) is a model for the effect of the treatment at time with no treatment thereafter, given the history up to time
The model is nested because it specifies the effect of each treatment one time point at a time, and it allows the effect at time to depend on the covariate history.
Let be a structural nested mean model. The g-estimation method defines, for each candidate the transformed outcome that removes the modelled effect of all treatments from time onwards,
and estimates as the value at which is independent of given for every which under sequential exchangeability holds at the true value since then has the mean of In practice solves the estimating equation that sets to zero the sample covariance between and the residual G-estimation has the following properties:
- it requires a model for the treatment at each time point and the structural nested mean model but no model for the outcome given the covariates;
- it is doubly robust when an outcome model is added to the estimating equation;
- it does not suffer from the g-null paradox and is less sensitive to large weights than inverse probability of treatment weighting;
- it estimates effect modification by the covariate history, which marginal structural models cannot.