Announcement

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

  • Moderated Mediation using Model 15 from Hayes

    Dear all,

    I am trying to do a moderated mediation analysis using Model 15 of Hayes SPSS Process. I saw a thread about Model 14 but, could someone help me with the Model 15 Stata syntax? I attached a picture of Model 15.

    Best,
    Insa
    Attached Files

  • #2
    You didn't get a quick answer. You'll increase your chances of a useful answer by following the FAQ on asking questions. For example, I don't know how many observations you have per firm year.

    You need to read the SEM model before asking questions like this. It will tell you how to do this.

    Comment


    • #3
      I'm no expert on SEM, but I think the basic analysis would look something like this:

      Code:
      // https://stats.idre.ucla.edu/stata/faq/how-can-i-do-moderated-mediation-in-stata/
      use https://stats.idre.ucla.edu/stat/data/hsb2, clear
      rename science y  /* dependent variable   */
      rename math x     /* independent variable */
      rename read m     /* mediator variable    */
      rename write v    /* moderator variable   */
      
      generate xv = x*v
      generate mv = m*v
      
      sem (m <- x)(y <- x m xv mv)
      estat teffects
      You'll have to modify the code or add more code if you want bootstrap SEs and CIs. (See examples on this UCLA page.)

      Another thing you could try is drawing the model via the SEM Builder, and having it generate the code. I suspect you'd still have to generate any needed product terms before doing that.

      HTH.
      --
      Bruce Weaver
      Email: bweaver@lakeheadu.ca
      Web: http://sites.google.com/a/lakeheadu.ca/bweaver/
      Stata version: 15.1 IC (Windows)

      Comment

      Working...
      X