Mediation analysis

A Causal inference with observational data method. But it can be used in combination with experiments. See also Instrumental variables estimation.

The basic idea is following (Baron1986moderator). When XMYX \rightarrow M \rightarrow Y , running a regression without MM will show XX is predictive of YY. However, if MM is the mediator and there is no direct connection from XX to YY, adding M to the model will remove the effect of XX.

Imai2010general addresses the problem of the traditional approach and proposes an alternative. mediation is an R implementation.