2
$\begingroup$

enter image description herecan anyone help me with what this R (package lavaan) syntax? I got a question: Is it correct that a kind of nested multiple mediation is tested with this code (X = "predictor", XM1 = "predictor 2" in "mediation 2" and "mediator 1" in "mediation 1", M2 = "mediator 2", Y = "criterion") with

indirect1 being the indirect effect of X -> XM1 -> Y

indirect2 being the indrect effect of XM1 -> M2 -> Y

total being the total effect of X -> XM1 -> Y

total1 being the total effect of XM1 -> M2 -> Y

total2 being the total effect of X -> XM1 -> M2 -> Y

is a term missing? such as "indirect3 := a1 + a2"

model syntax from lavaan

model <- '

Y ~ b1 * XM1 + b2 * M2 + c * X

pmc ~ a1 * X

indirect1 := a1 * b1

indirect2 := b2 + b1

total := c + (a1 * b1)

total1 := b1 + (a2 * b2)

total2 := c + (a1 * b2) + (a1 * a2 * b2)

M2 ~ a2 * XM1

'

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.