r/RStudio•
Jaded_Ad6504

How do I do a 2-2-1 multilevel logistic mediation in R?

The reviewers of my paper asked me to run this type of regression. I have both the predictor and the mediator as second-level variables, and the outcome as a first-level variable. The outcome Y is also binary, so I need a logistic model.

I have seen that lavaan does not support categorical AND clustered models yet, so I was wondering... How can I do that? Is it possible with SEM?

Posted Mar 12, 2025, 8:00 PM UTC

01
Loading comments…