M1 <-'
M ~ a1*X + a2*W + a3*M:W
Y ~ cd1*X + cd2*W + cd3*X:W + b1*M
IndexofModMed := a3*b1
'
SEM.1 <- sem(model = M1, data, estimator="MLR")
clustering<-svydesign(ids=~ID, weights = ~1, data)
SEM.1.Adjusted<-lavaan.survey(SEM.1, survey.design=clustering, estimator= "MLM")
Is there a way to estimate this model using lavaan, or a package that can assist it? If not, is it possible in R using an other package?
Thanks!
BF
my dependent variable is binary. I understand that lavaan does not handle (yet) multilevel SEM with binary DV
I believe - lavaan.survey does not handle binary outcome too.
Is there a way to estimate this model using lavaan
is it possible in R using an other package?
I thought that the mediation package could handle multilevel mediation but not multilevel moderated mediation. I will read more on that.
Terrence D. Jorgensen
Assistant Professor, Methods and Statistics
Research Institute for Child Development and Education, the University of Amsterdam
UvA web page: http://www.uva.nl/profile/t.d.jorgensen