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: [email protected]
      Web: http://sites.google.com/a/lakeheadu.ca/bweaver/
      Version: Stata/MP 18.0 (Windows)

      Comment


      • #4
        Dear all,

        I am analysis a moderated mediation model (model 2) using the commands in https://stats.idre.ucla.edu/stata/fa...tion-in-stata/. May I know how do I plot the moderation graph with the results obtained?

        These are my results:
        Mediator Moderation value Path coefficient 95% confidence interval STD error z-value P>|z| value
        H8a HP Low moderator .092 .035 .149 .029 3.14 .002
        Medium moderator .104 .054 .153 .025 4.11 0.000
        High moderator .116 .054 .179 .032 3.65 0.000
        H8b RBSE Low moderator .164 .073 .256 .047 3.51 .000
        Medium moderator .176 .107 .245 .035 4.98 .000
        High moderator .187 .094 .280 .048 3.82 .000
        Thank you

        Regards,
        Ang

        Comment


        • #5
          Originally posted by Xing Yuen Ang View Post
          Dear all,

          I am analysis a moderated mediation model (model 2) using the commands in https://stats.idre.ucla.edu/stata/fa...tion-in-stata/. May I know how do I plot the moderation graph with the results obtained?

          These are my results:
          Mediator Moderation value Path coefficient 95% confidence interval STD error z-value P>|z| value
          H8a HP Low moderator .092 .035 .149 .029 3.14 .002
          Medium moderator .104 .054 .153 .025 4.11 0.000
          High moderator .116 .054 .179 .032 3.65 0.000
          H8b RBSE Low moderator .164 .073 .256 .047 3.51 .000
          Medium moderator .176 .107 .245 .035 4.98 .000
          High moderator .187 .094 .280 .048 3.82 .000
          Thank you

          Regards,
          Ang
          may I ask how did you come out this table? I don't know how to perform it in STATA

          Comment

          Working...
          X