We did an experience sampling study and collected data from 54 people three times a day for five working days (repeated measures design: daily measures are nested in individuals). We are trying to test a moderated mediation model with: Daily events (x1-x4) --> triggering daily recovery (mediator)(m) --> influencing daily home affect (y) (Lower Level Mediation). The moderator is Level 2 (number of children living at home)(w). Is it possible to test such a cross level moderated mediation model with Mplus and how could I perform the analysis? Thank you so much!
Bengt, Thank you for the reference, but I didn't see any mention of moderated mediation. Also, I believe that moderated mediation with a L2 moderator and 1-1-1 mediation is possible, but I don't know how to develop the syntax in Mplus. I have tried numerous combinations of models, but the only one that will run is one that specifies all the variables as within (even though my moderator is actually L2, between). So I am looking for help with the syntax - apologies for not being clear earlier.
I hope this thread is the correct one for my question.
I have a question regarding multilevel modeling with repeated measures and would be very grateful for some help.
I have a repeated measures design with three within variables (response; negative affect; index) and one between variable (TheoX). Each participant was presented with two vignettes (=index) in a randomized order and we measured their response (=response) and their affect (=negative affect) to each of the two vignettes. Furthermore, we measured their leader mindset (=TheoX) once.
What I would like to do in MPLUS is run a moderated mediation (moderator on IV-Mediator path and on DV-IV path) with that repeated measures design. I think the code for Model 8 is the appropriate one, but my question is how to adjust the syntax in a way that it includes the fact that I have a repeated measures design. How/where in the syntax model do I need to define within an between?
You have a logical inconsistency when you put Negaff on the Within list and at the same time say
s| NegAff ON Index;
because the latter implies that Negaff varies across clusters due to the random slope varying across clusters.
You can instead let Negaff not be on the Within or Between lists so that it is allowed to vary on both levels. A latent variable decomposition into within and between is then made - see description in the text of UG ex 9.1 and 9.2 (all parts).