Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Moderation variable is not latent

    Hello,
    I'm trying to run an SEM with moderation (first time doing this).
    Click image for larger version

Name:	Screen Shot 2022-05-13 at 1.46.39 PM.png
Views:	1
Size:	154.8 KB
ID:	1664510
    I get a series of errors
    1. Must be in Generalized SEM mode
    2. Cannot create path | Pathsto other patchs allowed only from latent variables
    The moderating variable is an observed variable in my dataset.

    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
    And I tried doing the moderation with this code:

    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
    And got this error

    . 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.
    Thanks for your help
Working...
X