Hello,
I want to add a control variable to this sequential mediation syntax below. Can someone please guide me as to how to include a control variable, say ‘C’ to this model below:
My model is: X -> M1 -> M2 -> Y
Model <- ' M1 ~ a*X
M2 ~ b*M1
Y ~ c*M2
Y ~ d*X
Indirect Effect := a*b*c
Direct Effect := d
Total Effect := (a*b*c) + d
'
fit<-sem(Model, data=ade_data,se="bootstrap", bootstrap=1000)
summary(fit,fit.measures=TRUE,standardized=TRUE,rsquare=TRUE)
--Séanadh Ríomhphoist/
Email Disclaimer
Tá an ríomhphost seo agus aon chomhad a sheoltar leis faoi rún agus is lena úsáid ag an seolaí agus sin amháin é. Is féidir tuilleadh a léamh anseo.
This e-mail and any files transmitted with it are confidential and are intended solely for use by the addressee. Read more here.
You received this message because you are subscribed to the Google Groups "lavaan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lavaan+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lavaan/3594b92b-b303-4bf8-be67-5a4f77009292n%40googlegroups.com.