This is the version that implements the extension of the regression-based causal mediation analysis first proposed by Valeri and VanderWeele (2013, 2015). It supports including effect measure modification by covariates (treatment-covariate and mediator-covariate product terms in mediator and outcome regression models), and also accommodates the original unextended version when there is no effect measure modification. The formulas for point estimates and standard deviation, along with their derivations and other proofs are here: https://osf.io/d4brv/.
This is the version that implements the extension of the regression-based causal mediation analysis first proposed by Valeri and VanderWeele (2013, 2015). It supports including effect measure modification by covariates (treatment-covariate and mediator-covariate product terms in mediator and outcome regression models), and also accommodates the original unextended version when there is no effect measure modification. The formulas for point estimates and standard deviation, along with their derivations and other proofs are here: https://osf.io/d4brv/.