med_bench is a Python package that implements the most common estimators for causal mediation analysis in a single framework. We additionally allow for some flexibility in the choice of nuisance parameter models.
The simulations and performance evaluations realized here are presented in the following article
Judith Abécassis, Houssam Zenati, Sami Boumaïza, Julie Josse, Bertrand Thirion. Causal mediation analysis with one or multiple mediators: a comparative study. 2025. pdf
med_bench can be installed by executing
python setup.py install
pip install -e .
Or the package can be directly installed from the GitHub repository using
pip install git+git://github.com/judithabk6/med_bench.git
A full documentation can be found at https://judithabk6.github.io/med_bench/