Hi everyone,
I have been running mediation models with latent variables and I came up with a question: the equation of the direct effect from the tutorial seems reflecting rather total effect but not the direct effect. I wonder if I am missing anything. Please see below.
model <- ' # direct effect
Y ~ c*X
# mediator
M ~ a*X
Y ~ b*M
# indirect effect (a*b)
ab := a*b
# total effect
total := c + (a*b)
However, in my understanding of mediation, the equation of the direct effect would rather read like below (i.e., adding the term b*M):
model <- ' #
MY
direct effect
Y ~ c*X +
b*M
# mediator
M ~ a*X
Y ~ b*M
# indirect effect (a*b)
ab := a*b
# total effect
total := c + (a*b)
Could anyone let me know if there's anything I am missing? Any comments would be much appreciated. Thank you!
MJ