Perform linear sequential g-estimation to estimate the controlled direct effect of a treatment net the effect of a mediator.
Useful links