Hello
Sorry if this question mirrors some earlier questions, but I have not had any luck combining the various answers to the previous questions. I am still learning Lavaan, so I may well be missing something very obvious.
I am trying to analyze the results of a 3x2 factorial experiment, where the outcome of interest should be influenced by the interaction between one of the treatments and a mediated variable that is driven by the second treatment)
Specifically , I have treatment
Exogenous Treatments
X1 (Information) (two levels)
X2 (Frame) (three levels)
Mediator
M (Mood) , influenced by X2
Outcome
Y(Evaluation)
The hypothesis I am trying to test is that Y is the result of the interaction between X1 and M, which is in turn driven by X2, so
Y~X1*M
M~X2
But I am not sure how to properly estimate this model using Lavaan
I have tried to estimate this model in two ways:
a) Use X1 as a grouping factor. This is problematic though, because it doesn't really let me give a good estimator of the marginal effect of moving between the two groups moderated by M
b) Specify an Interaction Term X1*M in advance. But here I am not sure how to code it in such a way that the interaction also captures the fact that X2 has an impact on M
I am probably missing something very obvious, but I would appreciate a pointer on how to best go about fixing this model.
Thanks!
Chris