Abstract. In this article, we describe the use of ivmediate, a new command to estimate causal mediation eects in instrumental variables (IV) settings using the framework developed by Pinto et al. (2019). ivmediate allows to estimate a treatment eect and the share of this eect that can be attributed to a mediator variable. While both treatment and mediator can be potentially endogenous, a single instrument suffces to identify both the causal treatment and mediation effects.
Keywords: st0001, ivmediate, causal mediation analysis, treatment effects, instrumental variables