Dear lavaan community,
I am doing an mediation analysis, and would like to test if the proportion mediated is statistically different from zero. Is there maybe a possibility to do this in lavaan?
Proportion mediated is (a*b)/(c+(a*b)) where c is the direct effect on X on Y, a the effect of M on Y, and b the effect of X on M.
Y is the main dependent variable, X the indpendent variable, and M the mediator.
Any help or suggestions are very welcome.
Jošt