We are conducting a repeated measure experiment with around 40 participants. X has 2 possible values, coded as 1 and 2, representing 2 conditions (so not continuous numeric variable). Within each condition, we have 40 trials. We have two mediators, and each mediators has a range from 1 to 7. Y also has a range from 1 to 7.
I was able to fit in lavaan multilevel mediation model with sem, but the website also suggests that `
If the data is clustered, one way to handle the clustering is to use a multilevel modeling approach. In the SEM framework, this leads to multilevel SEM. The multilevel capabilities of lavaan are still limited, but you can fit a two-level SEM with random intercepts (note: only when all data is continuous).
What's the logic/reason behind this? Does this mean I should not trust the outcome from the current analysis? If so, is there any other better package I can use? (it seems that "mediation" does not allow multiple mediators).
Thank you so much for any help!!!
My code is attached in the screenshot photo.
Thank you so much for any help and suggestion!!!
only when all data is continuous).
What's the logic/reason behind this?
Terrence D. Jorgensen (he, him, his)
Assistant Professor, Methods and Statistics
Research Institute for Child Development and Education, the University of Amsterdam
http://www.uva.nl/profile/t.d.jorgensen
--
You received this message because you are subscribed to a topic in the Google Groups "lavaan" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lavaan/WMx7vOXmQo8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lavaan+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lavaan/8db82b97-0a4f-424e-a9ab-25cc5eba2583n%40googlegroups.com.