This repository contains R code to to replicate the numerical example in the eAppendix of the paper:
Moreno-Betancur M, Carlin JB. Understanding interventional effects: a more natural approach to mediation analysis? Epidemiology [Epub ahead of print June 1 2018].