mediation analysis
Mediation analysis explores how or why an independent variable (X) influences a dependent variable (Y) through an intermediary variable (M) called the mediator
X → M → Y
The mediator transmits the effect of X on Y
mediation model
TRIANGLE WITH ARROWS
M
X Y
(two arrows stick out AWAY from X; M–> Y)
X –> M = path a
M –> Y = path b
X –> Y = path c
X –> Y (controlling M) = path c’
path a (mediation model)
effect of X on meditator M
path b (mediation model)
effect of M on outcome Y (controlling for X)
path c (mediation model)
total effect effect of X on Y (NOT controlling for M)
path c’ (mediation model)
direct effect of X on Y (controlling for M)
Baron and Kenny (1986) Approach
Step by step procedure to test mediation using a series of regression models
4 steps!
steps to Baron and Kenny (1986) Approach
contemporary approaches vs Baron and Kenny (1986) Approach
Baron and Kenny: If there is no relationship between X and Y, you can’t run mediation analysis
Contemporary thoughts: You can still run a meditation if there no relationship between X and Y
STEP 1 (B&K)
Y = B0+ B1(X) + E
STEP 2 (B&K)
M = B0+ B2(X) + E
STEP 3 (B&K)
Y = B0+ B4(X) + B3(M) + E
STEP 4 (B&K)
Complete mediation: c’ drops to zero/non-significance
Partial mediation: c’ is reduced but still significant
The sobel test
the sober test
formally tests whether the indirect effect (a x b) is significant
Formula: tests if the product of paths a and b differs from zero
interpretation of sobel test
If z is significant (p < 0.05), the indirect effect is significant
Provides statistical evidence that M mediates the X → Y relationship
limitation of sobel test
Assumes the indirect effect is normally distributed (often not true with small samples)
The product of two normally distributed variables (like a and b) is not normally distributed → it’s skewed
Skewness means the Sobel z-test often has low power (misses real mediation effects) and its confidence intervals can be biased (too narrow!)
bootstrapping
step 3 of B&K
Bootstrapping solves the problem of non-normality of the indirect effect (a x b) by empirically estimating its sampling distribution
how does bootstrapping work
If 0 not in CI → significant mediation
Baron & Kenny: Key Assumptions
Casual order: X → M → Y reflects true causal direction
No unmeasured confounders: no omitted variables affecting M and Y
No measurement error: variables measured without significant error
Linearity and additivity: linear relationships, no X-M interactions
Violations threaten mediation inferences
Baron & Kenny: Advantages
Conceptually intuitive and essay to implement
Widely popular – dominant strategy for decades
Systematic approach – think through each link
Clear terminology – full vs partial mediation
R Studio Interpretation
of mediation significance
If ACME is significant, you have evidence of mediation
This alone does not tell you whether the mediation is partial or complete
To decide partial vs complete: look at ADE (DIRECT EFFECT)
If ADE is still significant, → partial mediation (some direct effect remains)
If ADE is not significant, → complete mediation (effect passes entirely through M)
Baron & Kenny: Limitations
Modern Approaches: Why We Need Them
Key problems with Baron & Kenny:
- Focus on individual path significance, not indirect effect
- Can miss mediation when direct/indirect effects cancel out
- Assumes normality of indirect effect distribution
- Limited to simple models
Modern solutions:
- Direct testing of indirect effects
- Bootstrapping for non-normal distributions
- SEM for complex models
- Focus on effect sizes, not just significance
Modern SEM Approach to Mediation - key features
Unified model estimation: single model instead of separate regressions
Direct test of indirect effect: explicitly define a x b as parameter
Handles complex models: multiple mediators, latent variables
Measurement error correction: account for unreliability