Mediation Analysis in R from Scratch (with R code)
This tutorial shows you how to do mediation analysis in R from scratch. As we know, quantitatively, mediation analysis is about if the product of a*b is statistically significant (see figure below). If you assume that a*b is normally distributed, you can just directly test the level of significance. If you do not assume normal … Read more