As far as I understand it, multilevel sem in lavaan works only when all variables are continuous.
My question for the group is whether there are any other solutions for testing this model using lavaan? I would prefer not to use black box software like Mplus.
Maybe the lavaan.survey package would be appropriate? I'm not sure but it might work because the data are clustered and I'm using predictors measured at level 2.
As far as I understand it, multilevel sem in lavaan works only when all variables are continuous.Currently correct.My question for the group is whether there are any other solutions for testing this model using lavaan? I would prefer not to use black box software like Mplus.How many indicators of the mediator? You could sum them to create a single observed mediator to run this in lavaan. The power to detect mediated effects would only be substantially lower if your items are not reliable (low loadings) and you don't have many of them.
If you are savvy with programming, you could use blavaan (the Bayesian extension) to specify a basic basic model using lavaan syntax, then update the generated JAGS or Stan syntax as needed to fit your actual model.
Maybe the lavaan.survey package would be appropriate? I'm not sure but it might work because the data are clustered and I'm using predictors measured at level 2.lavaan.survey also does not handle categorical endogenous variables. I think lavaan might still offer cluster-robust SEs with categorical outcomes, so you could try that, but I'm not sure how badly biased your estimated effects would be if you couldn't account for the fact that your causes only vary at Level 2.Terrence D. JorgensenAssistant Professor, Methods and StatisticsResearch Institute for Child Development and Education, the University of Amsterdam
--
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 post to this group, send email to lav...@googlegroups.com.
Visit this group at https://groups.google.com/group/lavaan.
For more options, visit https://groups.google.com/d/optout.