Resmi Gupta posted on Tuesday, April 05, 2011 - 7:52 am
Hi, I have one latent predictor (y1), one observed predictor (cb), one latent mediator(y2) and a latent outcome variable (e). I think there is an interaction effect between the latent predictor and the observed predictor on both mediator and outcome variable. Following is my code. I am not sure if this is the right code.
model: y1 by a b ; y2 by c d ; e1 by f g; e2 by h i; e by e1 e2; y1cb | y1 xwith cb; e on y2 y1 cb y1cb; y2 on y1 cb y1cb;
The above looks correct except when you fix factor loadings to one to set the metric of the factor, you must free the first factor loading, for example,
y1 BY a* b;
The is a type of mediated moderation.
Resmi Gupta posted on Tuesday, April 05, 2011 - 9:42 am
Thanks very much Dr. Muthen. Regards, Resmi Gupta
Resmi Gupta posted on Wednesday, April 06, 2011 - 12:10 pm
Drs. Muthen, I have a quick question on how to calculate indirect effect of a mediator and use Sobel test.I have 2 latent factor predictors (a, b in my code below), one mediator (observed, M ),a continuous outcome (Y). Finally x is my covariate. Following is my code :
a by a1* a2; b by b1* b2; y on M a b x; M on f1 f2; f1 with f2; f1@1, f2@1; model indirect: y ind f1 f2; y via f1 f2 M;
Do I need to have both "ind" and "via" command ? I am envisioning direct effect of f1 , f2 on Y , and an indirect effect (of f1 and f2 ) via M on Y . Also I would like to get the Magnitude of M (mediator). Greatly appreciate your input. Regards, Resmi Gupta