cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
Choose Language Hide Translation Bar
View Original Published Thread

SEM: Moderated-Mediation How-To

ArthurB
Level I

Good afternoon, JMP Community.

Here is the scenario:

  • Version:  JMP Pro 18.0.2
  • Research Question:  To what extent do non-financial incentives (NFIs) influence employee retention as moderated by employee level (junior, middle, senior) and mediated by job satisfaction?
  • Observations = ~130,000 |  Variables = ~100 variables
  • Measures
    • Independent Variables/Factors (NFIs)
      • Training and Development (TAD) - comprised of 5 factors
      • Awards and Recognition (AAR) - comprised of 1 factor
      • Mentoring (MTR) - comprised of 3 factors
    • Moderating Variable = Employee Level (ELV) - comprised of 1 variable
    • Mediation Variable/Factor = Job Satisfaction (JSAT) - comprised of 1 factor
    • Dependent Variable = Retention (RTN)
  • Conceptual Framework:

ArthurB_0-1742331408209.png

 

I have installed the JMP Pro add-in for moderation-mediation.  In my case, the moderator (Z) is ELV, the mediator (M) is JSAT, and the outcome (Y) is RTN.  However, the add-in does not seem to allow for more than one predictor (X) simultaneously, nor does it allow for latent variables to be created and used as predictors.  

Please advise if I am missing something or if there is an alternative methodology. 

Thank you,

ArthurB

 

 

1 ACCEPTED SOLUTION

Accepted Solutions


Re: SEM: Moderated-Mediation How-To

Hi Arthur,

 

Great question! I created the Moderation and Mediation Add-In and you’re exactly right – this resembles a first-stage moderated mediation model, however, currently the add-in can’t accommodate latent variables or multiple focal predictors (i.e., multiple predictors whose effects are moderated). You can manually specify this model in the SEM platform. The approach I’ll demonstrate here is called the “unconstrained product indicator” approach, and you can read more details about it in Marsh et al. (2012).

 

Data Pre-Processing

There is some data pre-processing that will be required. I simulated some data to correspond with your variable names based on your description. This may not be quite right, but I have 5 indicators for TAD (TAD is latent), 1 variable for AAR, 3 indicators for MTR (MTR is latent), and 1 variable for ELV, JSAT, and RTN. Feel free to tweak this example as necessary for your data.

haleyyaremych_0-1742401064051.png

 

  1. First, mean-center all the predictors (including all indicators of latent variables) and the moderator. I’ve appended a “c” to these new variable names:

haleyyaremych_1-1742401064051.png

 

  1. Next, create product terms involving each predictor and the moderator. When the predictor is a manifest variable (i.e., has only one indicator), this is a simple product term. When the predictor is a latent variable (i.e., has multiple indicators), we need a product term for each indicator.

haleyyaremych_2-1742401064051.png

 

Launch SEM Platform

Now you’re ready to launch the SEM platform. Make sure to include (1) the mean-centered predictors and mean-centered moderator, (2) all their product terms, and (3) the mediator and outcome. It can be a little tricky to make the jump from the conceptual framework – as you’ve shown here – to the SEM that maps onto that conceptual framework, so I’ll show you how the model specification should look.

 

Conceptual vs. Statistical Model

As you may have seen in the add-in, the statistical model for first-stage moderated mediation involves the predictor, the moderator, and a predictor*moderator product term. These things each predict both the mediator and the outcome. (Note – though we’re usually interested in moderation of the X -> M pathway, as you are here, it’s best practice to also include X -> Y pathways and allow those to be moderated, too. Omitting them can result in biased estimates if they’re nonzero.) We’re going to expand this model so that there are multiple X’s (and multiple X*Z product terms). Some of those predictors are latent variables, so their corresponding product terms are also latent variables.

haleyyaremych_3-1742401064053.png

 

Model Specification in the SEM Platform

  1. Specify latent variables and latent interactions. For the latent interactions, use the product variables that were created in pre-processing. The latent variables look as usual:

haleyyaremych_4-1742401064053.pnghaleyyaremych_5-1742401064053.png

 

 

And the latent interactions look like this:

haleyyaremych_6-1742401064054.pnghaleyyaremych_7-1742401064054.png

 

  1. Set up the necessary regression paths. It looks like this. TAD, MTR, and AARc are the predictors (X), ELVc is the moderator (Z), and TAD*ELV, MTR*ELV, and AARc*ELVc are the product terms (X*Z).  All these things have paths to JSAT (M) and RTN (Y).

haleyyaremych_8-1742401064056.png

 

 

  1. Allow all the X, Z, and X*Z terms to covary.

haleyyaremych_9-1742401064058.png

 

 

And those are your steps. This is quite a complex model, but it sounds like you have enough data to support it.

Hope this helps!

Haley

View solution in original post

2 REPLIES 2


Re: SEM: Moderated-Mediation How-To

Hi Arthur,

 

Great question! I created the Moderation and Mediation Add-In and you’re exactly right – this resembles a first-stage moderated mediation model, however, currently the add-in can’t accommodate latent variables or multiple focal predictors (i.e., multiple predictors whose effects are moderated). You can manually specify this model in the SEM platform. The approach I’ll demonstrate here is called the “unconstrained product indicator” approach, and you can read more details about it in Marsh et al. (2012).

 

Data Pre-Processing

There is some data pre-processing that will be required. I simulated some data to correspond with your variable names based on your description. This may not be quite right, but I have 5 indicators for TAD (TAD is latent), 1 variable for AAR, 3 indicators for MTR (MTR is latent), and 1 variable for ELV, JSAT, and RTN. Feel free to tweak this example as necessary for your data.

haleyyaremych_0-1742401064051.png

 

  1. First, mean-center all the predictors (including all indicators of latent variables) and the moderator. I’ve appended a “c” to these new variable names:

haleyyaremych_1-1742401064051.png

 

  1. Next, create product terms involving each predictor and the moderator. When the predictor is a manifest variable (i.e., has only one indicator), this is a simple product term. When the predictor is a latent variable (i.e., has multiple indicators), we need a product term for each indicator.

haleyyaremych_2-1742401064051.png

 

Launch SEM Platform

Now you’re ready to launch the SEM platform. Make sure to include (1) the mean-centered predictors and mean-centered moderator, (2) all their product terms, and (3) the mediator and outcome. It can be a little tricky to make the jump from the conceptual framework – as you’ve shown here – to the SEM that maps onto that conceptual framework, so I’ll show you how the model specification should look.

 

Conceptual vs. Statistical Model

As you may have seen in the add-in, the statistical model for first-stage moderated mediation involves the predictor, the moderator, and a predictor*moderator product term. These things each predict both the mediator and the outcome. (Note – though we’re usually interested in moderation of the X -> M pathway, as you are here, it’s best practice to also include X -> Y pathways and allow those to be moderated, too. Omitting them can result in biased estimates if they’re nonzero.) We’re going to expand this model so that there are multiple X’s (and multiple X*Z product terms). Some of those predictors are latent variables, so their corresponding product terms are also latent variables.

haleyyaremych_3-1742401064053.png

 

Model Specification in the SEM Platform

  1. Specify latent variables and latent interactions. For the latent interactions, use the product variables that were created in pre-processing. The latent variables look as usual:

haleyyaremych_4-1742401064053.pnghaleyyaremych_5-1742401064053.png

 

 

And the latent interactions look like this:

haleyyaremych_6-1742401064054.pnghaleyyaremych_7-1742401064054.png

 

  1. Set up the necessary regression paths. It looks like this. TAD, MTR, and AARc are the predictors (X), ELVc is the moderator (Z), and TAD*ELV, MTR*ELV, and AARc*ELVc are the product terms (X*Z).  All these things have paths to JSAT (M) and RTN (Y).

haleyyaremych_8-1742401064056.png

 

 

  1. Allow all the X, Z, and X*Z terms to covary.

haleyyaremych_9-1742401064058.png

 

 

And those are your steps. This is quite a complex model, but it sounds like you have enough data to support it.

Hope this helps!

Haley

ArthurB
Level I


Re: SEM: Moderated-Mediation How-To

Hello Haley,

 

This was masterful!  Thank you for your quick, thorough, and clear response.  It worked as outlined.

 

Grateful,

ArthurB