Typically in mediation analyses we see diagrams like the following, in which
X is the causal variable,
Y is the outcome variable, and
M is the mediating variable. Meanwhile path
c is called the total effect, path
c' is called the direct effect, and path
ab is called the indirect effect.
c = c' + ab is often mentioned. When does it exactly hold?