Hello,
I'm trying to run an SEM with moderation (first time doing this).
My guess is that I need to make the variable into a latent variable (which seems impossible).
Thanks for your help
For reference, this is the code created by state from the SEM builder without the moderator
And I tried doing the moderation with this code:
And got this error
I'm trying to run an SEM with moderation (first time doing this).
I get a series of errors![]()
- Must be in Generalized SEM mode
- Cannot create path | Pathsto other patchs allowed only from latent variables
My guess is that I need to make the variable into a latent variable (which seems impossible).
Thanks for your help
For reference, this is the code created by state from the SEM builder without the moderator
Code:
sem (offermade -> syndicateddeal, ) (VQ1 -> offermade, ) (NVT1 -> offermade, ) (NVT2 -> offermade, ) (PP1 -> offermade, ) (Leg1 -> offermade, ) (ENTL1 -> offermade, ) (ENTL2 -> offermade, ) (ENTL3 -> offermade, ) (ENTL4 -> offermade, ) (ENTL5 -> offermade, ) (ENTL6 -> offermade, ), nocapslatent
Code:
sem (offermade offermade*languagecorrelation languagecorrelation -> syndicateddeal, ) (VQ1 -> offermade, ) (NVT1 -> offermade, ) (NVT2 -> offermade, ) (PP1 -> offermade, ) (Leg1 -> offermade, ) (ENTL1 -> offermade, ) (ENTL2 -> offermade, ) (ENTL3 -> offermade, ) (ENTL4 -> offermade, ) (ENTL5 -> offermade, ) (ENTL6 -> offermade, ) (languagecorrelation), nocapslatent
Thanks for your help
. sem (offermade offermadelanguagecorrelation languagecorrelation -> syndicateddeal, ) (VQ1 -> offermade, ) (NVT1 -> offermade, )
> (NVT2 -> offermade, ) (PP1 -> offermade, ) (Leg1 -> offermade, ) (ENTL1 -> offermade, ) (ENTL2 -> offermade, ) (ENTL3 -> offerma
> de, ) (ENTL4 -> offermade, ) (ENTL5 -> offermade, ) (ENTL6 -> offermade, ) (languagecorrelation), nocapslatent
variable offermadelanguagecorrelation not found;
Perhaps you meant 'offermadelanguagecorrelation' to specify a latent variable.
For 'offermadelanguagecorrelation' to be a valid latent variable specification, 'offermadelanguagecorrelation' must appear in
the latent() option.