Introduction To Mediation Models With The PROCESS Marco in SPSS
Introduction To Mediation Models With The PROCESS Marco in SPSS
In this workshop, we will cover only some of what can be done with the PROCESS macro in SPSS. We will focus on mediation models. We
will not cover moderation in any way. We will be using version 4.0 of the PROCESS macro. Much of the material in this workshop is based
on Introduction to Mediation, Moderation and Conditional Process Analysis: A Regression-based Approach, Third Edition by Andrew F.
Hayes (2022).
Installing PROCESS
Let’s take a moment to look at the installation process. First, go to processmacro.org (https://www.processmacro.org/index.html) and then
to the Downloads tab (at the top of the page). Download the zipped file, and then unzip the file. Next, read the Installing PROCESS
custom dialog PDF. Finally, open and run the process.sps file. The custom dialog will remain installed as you open and close the SPSS
program, but you must run the process.sps file each time you open SPSS and want to use the PROCESS macro. The instructions describe
the installation process of the custom dialog based on the version of SPSS you are running; the execution of the process.sps file is the
same in all versions of SPSS.
(https://stats.oarc.ucla.edu/wp-
content/uploads/2022/02/simple_regression_model1.png)
In this model, we assume that there is a relationship between the predictor variable X and the outcome variable Y. The relationship may
be correlational or causal or something else. There is no way to know the nature of the relationship from just the statistical model. The
understanding of the relationship between X and Y comes from a thorough understanding of how the data were collected.
In a simple
mediation model, a third variable, called the mediator, M, is included in the model between X and Y.
The idea is that X now has two ways to influence Y. One way is direct, as in the simple regression model shown above. The second way
is through M, the mediator. This is called the indirect effect. Of course, there is much more to mediation analysis than merely adding a
variable to a regression model, and we will discuss some of those issues in this workshop. Because simple mediation analysis is based
on linear regression, you can obtain much of the necessary output from a simple mediation analysis using a linear regression routine in
your favorite statistical software program. However, other necessary parts of the output from a simple mediation analysis are difficult to
get from regular regression output, so other routines are used. Some use structural equation modeling (SEM) routines. In this workshop,
we will use a macro called PROCESS (version 4), which was written by Andrew F. Hayes. You can download this macro for free from
processmacro.org (https://www.processmacro.org/index.html) . There are three versions of this macro: one for those who use SPSS, one
for those who use SAS, and most recently, one for those who use R. Most of the documentation for the PROCESS macro can be found in
Introduction to Mediation, Moderation and Conditional Process Analysis: A Regression-based Approach, Third Edition by Andrew F.
Hayes (2022). Much of the content of this workshop is based on Part II of this book.
We will start off with the mechanics of how to run a simple mediation model including the syntax for the PROCESS macro in SPSS We will
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 1/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
We will start off with the mechanics of how to run a simple mediation model, including the syntax for the PROCESS macro in SPSS. We will
then discuss assumptions that we must test or explore in order to claim a causal relationship between the variables in the model. Finally,
we will discuss models that have more than one mediator.
Let’s start with the simplest mediation model. This model has three continuous variables. Like a linear regression model, there is a
predictor variable and an outcome variable. To make it a mediation model, we will add the mediator variable between the predictor and
the outcome. The predictor variable (X) can be called the antecedent variable, because it occurs before either the mediator (M) or the
outcome (Y). The outcome can be called the consequent variable, because it is believed to the consequence of the process the model
describes. The mediator variable is both an antecedent variable (to the outcome) and a consequent variable (to the predictor).
(https://stats.oarc.ucla.edu/wp-
content/uploads/2022/02/simple_mediation_model.png)
The path from X to M is called a; the path from M to Y is called b; the path from X to Y is called c’. The indirect effect of X on Y through M
is obtained by multiplying a and b. The total effect is the sum of the direct effect and the indirect effect. In other words, the total effect
(called c) is (a * b) + c’. The fact that the indirect effect is obtained by multiplication has implications regarding the calculation of the
standard error for this term.
For most of the tests given in the output of a mediation analysis, the normal theory approach is used. This approach makes some
assumptions, and these assumptions are reasonable for these tests. However, there are at least two reasons to be concerned about
using normal theory with indirect effects. First, it is known that the sampling distribution of a product term is (usually) not normal. Second,
this approach may be lower in power than other approaches. There are several possible solutions for this, but the most commonly used
solution is to calculate the confidence interval via bootstrap. In fact, bootstrapped confidence intervals are the default in PROCESS for the
indirect effect.
The diagram above is typically shown, but the diagram below is a little more accurate because it shows which variables have error terms
associated with them.
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 2/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
(https://stats.oarc.ucla.edu/wp-
content/uploads/2022/03/simple_mediation_model_with_errors.png)
The outcome and mediator must be continuous when using the PROCESS macro; PROCESS checks for this and will not run if these
variables are not continuous. The predictor may be continuous, binary or have multiple categories. In our first example, all of the variables
in our simple mediation model will be continuous. We will use the hsbmediation (https://stats.oarc.ucla.edu/wp-
content/uploads/2022/03/hsbmediation.sav) data. This dataset contains 200 observations from a fictional study. In this fictional study, the
researchers randomly assigned participants to receive information about senior living facilities. The amount of detail given to participants
ranged from a little to quite a lot along a continuous scale. The variable is called detail in the dataset and is the predictor, or X, in the
simple mediation model. The mediator (M) was the age of the participants (the variable age in the dataset), and the outcome (Y) was a
measure of opinion strength regarding a proposed change to a law regarding senior living facilities (called opinion in the dataset).
If you want to run the model as two regressions, you could use this syntax:
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 3/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
(https://stats.oarc.ucla.edu/wp-
content/uploads/2022/02/regression1.png)
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 4/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
(https://stats.oarc.ucla.edu/wp-
content/uploads/2022/02/regression2.png)
We give the name of the outcome variable on the y subcommand; the name of the predictor variable on the x subcommand, and the
name of the mediator variable on the m subcommand. We must include the model number. The only place to get the model numbers is
from Appendix A in Hayes’ book. We include the seed subcommand so that the results are exactly reproducible from one run to the next.
Hayes recommends using the same seed for each analysis in your paper or research project.
The point-and-click interface can also be used (if it has been installed). To access the dialog box, click on Analyze and then Regression
and then PROCESS v4.0 by Andrew F. Hayes. Click the variables into the appropriate boxes so that it looks like this (do not forget to
change the model number to 4).
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 5/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
(https://stats.oarc.ucla.edu/wp-
content/uploads/2022/02/gui1.png)
The output is presented below. The output is the same whether syntax or point-and-click was used. We will go through each part of it
now.
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 6/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
**************************************************************************
Model : 4 Part 1
Y : opinion
X : detail
M : age
Sample
Size: 200
Custom
Seed: 30802022
**************************************************************************
age
Model Summary
Model
**************************************************************************
opinion
Model Summary
Model
Indirect effect(s) of X on Y:
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 7/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
95.0000
5000
The first part of the output is important: It tells you what PROCESS used for the predictor, mediator and outcome, as well as the model
number and number of observations used in the analysis. You should always check this first to ensure clear communication between you
and PROCESS.
In part 2 of the output, the mediator is used as the outcome. There is only one predictor, which is the variable specified as X. The
coefficient of the mediator on the predictor is the a path. It also matches the output from the first regression. A generic interpretation is
that “… for two cases that are equal on M but differ by one unit on X, c’ is the estimated value of Y for the case with X = x minus the
estimated value of Y for the case with X = x – 1.…the sign of c’ tells whether the case one unit higher on X is estimated to be higher (c’ = +)
or lower (c’ = -) on Y. So a positive direct effect means that the case higher on X is estimated to be higher on Y, whereas a negative direct
effect means that the case higher on X is estimated to be lower on Y. In the special case where X is dichotomous, with the two values of
X differing by a single unit (e.g., X = 1 and X = 0), Y-hat can be interpreted as a group mean, …, meaning it estimates the difference
between the two group means holding M constant. This is equivalent to what in analysis of covariance terms is called an adjusted mean
difference” (page 85).
In part 3 of the output, Y is used as the outcome variable, and X and M are predictors. This output gives the b and c’ paths. It also
matches the output from the second regression. The interpretation of b is the same as the interpretation of a, except that M is the
antecedent instead of X, and Y is the outcome. “Two cases that differ by one unit on M but that are equal on X are estimated to differ by
b units on Y” (page 86).
In part 4 of the output, we again see the total effect, along with the direct effect and the indirect effect. The total effect is 0.6508 = 0.4237
+ 0.2270 (with a little rounding error). The indirect effect is simply a * b, or 0.5517*0.4115 = 0.2270. Notice that the CIs around this estimate
are the bootstrapped CIs. Because they are bootstrapped CIs, the point estimate is not exactly in the center of the interval. Another
definition of the indirect effect is ab = c – c’. “The indirect effect is the difference between the total effect of X on Y and the effect of X on
Y controlling for M, the direct effect” (page 87).
Part 5 of the output of the output gives notes and errors. Of course, you want to review this section for anything problematic. The notes in
this output give the level of confidence for all CIs presented in the output and the number of bootstrap samples for those CIs that were
bootstrapped. In PROCESS, the default number of bootstrap samples is 5000. This can be changed, usually to a higher number.
Making a diagram of the path model with the coefficients and standard errors is a good way to present the results. For this model, we
might create something like:
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 8/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
(https://stats.oarc.ucla.edu/wp-content/uploads/2022/02/output_example_1.png)
Let’s confirm the calculations of the indirect and total effects. The indirect effect is the coefficient of the a path multiplied by the
coefficient of the b path:0.5517*0.4115 = 0.2270 (which is what we see in the output). The total effect is the sum of direct effect and the
indirect effect: 0.4237 + 0.2270 = 0.6507 (with a little rounding error). We do not see the total effect in the output above, but we
probably want to include that. While it is easy enough to add the two numbers to get the total effect, we would like PROCESS to
calculate the standard errors for us.
Adding Options
The total option
The total = 1 optional subcommand can be used to get additional information about the total effect.
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 9/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
**************************************************************************
Model : 4
Y : opinion
X : detail
M : age
Sample
Size: 200
Custom
Seed: 30802022
**************************************************************************
OUTCOME VARIABLE:
age
Model Summary
Model
coeff se t p LLCI ULCI
**************************************************************************
OUTCOME VARIABLE:
opinion
Model Summary
Model
coeff se t p LLCI ULCI
OUTCOME VARIABLE:
opinion
Model Summary
Model
coeff se t p LLCI ULCI
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 10/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
Total effect of X on Y
Direct effect of X on Y
Indirect effect(s) of X on Y:
95.0000
5000
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 11/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
**************************************************************************
Model : 4
Y : opinion
X : detail
M : age
Sample
Size: 200
Custom
Seed: 30802022
**************************************************************************
OUTCOME VARIABLE:
age
Model Summary
Model
coeff se t p LLCI ULCI
**************************************************************************
OUTCOME VARIABLE:
opinion
Model Summary
Model
coeff se t p LLCI ULCI
Direct effect of X on Y
Indirect effect(s) of X on Y:
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 12/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
95.0000
10000
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 13/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
**************************************************************************
Model : 4
Y : opinion
X : detail
M : age
Sample
Size: 200
Custom
Seed: 30802022
**************************************************************************
OUTCOME VARIABLE:
age
Model Summary
Model
coeff se t p LLCI ULCI
Standardized coefficients
coeff
detail .5968
**************************************************************************
OUTCOME VARIABLE:
opinion
Model Summary
Model
coeff se t p LLCI ULCI
Standardized coefficients
coeff
detail .4047
age .3633
OUTCOME VARIABLE:
opinion
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 14/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
Model Summary
Model
coeff se t p LLCI ULCI
Standardized coefficients
coeff
detail .6215
Total effect of X on Y
Direct effect of X on Y
Indirect effect(s) of X on Y:
95.0000
5000
Hayes is careful to note that fully standardized results make sense only when all of the variables in the model are continuous. He warns
against standardizing the coefficients of binary predictors, as this may not make much sense substantively. In fact, if you request
standardized coefficients and have specified a binary predictor variable (X), you will get only partially standardized results. A note to this
effect will be given in the final part of the output. We will see an example of this in the next section.
The decimals optional subcommand can be added to alter the number of decimal places shown in the output. In the example below, the
default number of decimal places is changed from four to two. Notice that the this change is using the type of format notation that would
be used in SPSS to change the format of a numeric variable.
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 15/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 16/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
**************************************************************************
Model : 4
Y : opinion
X : detail
M : age
Sample
Size: 200
Custom
Seed: 30802022
**************************************************************************
OUTCOME VARIABLE:
age
Model Summary
Model
coeff se t p LLCI ULCI
**************************************************************************
OUTCOME VARIABLE:
opinion
Model Summary
Model
coeff se t p LLCI ULCI
Direct effect of X on Y
Indirect effect(s) of X on Y:
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 17/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
95.0000
5000
(https://stats.oarc.ucla.edu/wp-
content/uploads/2022/02/regression3.png)
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 18/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
(https://stats.oarc.ucla.edu/wp-
content/uploads/2022/02/regression4.png)
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 19/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
**************************************************************************
Model : 4
Y : opinion
X : detail2
M : age
Sample
Size: 200
Custom
Seed: 30802022
**************************************************************************
OUTCOME VARIABLE:
age
Model Summary
Model
coeff se t p LLCI ULCI
**************************************************************************
OUTCOME VARIABLE:
opinion
Model Summary
Model
coeff se t p LLCI ULCI
OUTCOME VARIABLE:
opinion
Model Summary
Model
coeff se t p LLCI ULCI
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 20/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
Total effect of X on Y
Direct effect of X on Y
Indirect effect(s) of X on Y:
95.0000
5000
The interpretation of the results is the same as above. As stated on page 85, “In the special case where X is dichotomous, with the two
values of X differing by a single unit (e.g., X = 1 and X = 0), Ŷ can be interpreted as a group mean, …, meaning c’ estimates the difference
between the two group means holding M constant. This is equivalent to what in analysis of covariance terms is called an adjusted mean
difference.”
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 21/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
(https://stats.oarc.ucla.edu/wp-content/uploads/2022/02/output_example_2.png)
Let’s add the stand = 1 optional subcommand to get standardized results and see what happens.
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 22/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
**************************************************************************
Model : 4
Y : opinion
X : detail2
M : age
Sample
Size: 200
Custom
Seed: 30802022
**************************************************************************
OUTCOME VARIABLE:
age
Model Summary
Model
coeff se t p LLCI ULCI
Standardized coefficients
coeff
detail2 1.1085
**************************************************************************
OUTCOME VARIABLE:
opinion
Model Summary
Model
coeff se t p LLCI ULCI
Standardized coefficients
coeff
detail2 .5635
age .4479
OUTCOME VARIABLE:
opinion
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 23/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
Model Summary
Model
coeff se t p LLCI ULCI
Standardized coefficients
coeff
detail2 1.0599
Total effect of X on Y
Direct effect of X on Y
Indirect effect(s) of X on Y:
95.0000
5000
variables before running this analysis. We will use the lowest-numbered category as our reference group. (Please see Regression for
SPSS Chapter 5: Additional coding systems for categorical variables in regression analysis
(https://stats.oarc.ucla.edu/spss/webbooks/reg/chapter5/regression-with-spsschapter-5-additional-coding-systems-for-categorical-
variables in regressionanalysis/) for more information on different types of coding systems ) In the syntax for PROCESS the mcx = 1
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 24/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
variables-in-regressionanalysis/) for more information on different types of coding systems.) In the syntax for PROCESS, the mcx = 1
optional subcommand is included to tell PROCESS that the predictor (X) has more than two categories and to use indicator (AKA dummy)
coding. Unlike with the regression command in SPSS, we do not need to create the dummy variables before using PROCESS; PROCESS
will do that for us (but the dummy variables are not added to the dataset, just as they are not when using the SPSS glm command).
PROCESS offers four different types of coding for categorical predictors; they are discussed below.
(https://stats.oarc.ucla.edu/wp-
content/uploads/2022/02/regression5.png)
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 25/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
(https://stats.oarc.ucla.edu/wp-
content/uploads/2022/02/regression6.png)
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 26/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
**************************************************************************
Model : 4 Part 1
Y : opinion
X : detail3
M : age
Sample
Size: 200
Custom
Seed: 30802022
detail3 X1 X2
**************************************************************************
age
Model Summary
Model
coeff se t p LLCI ULCI
**************************************************************************
opinion
Model Summary
Model
coeff se t p LLCI ULCI
opinion
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 27/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
Model Summary
Model
coeff se t p LLCI ULCI
----------
----------
95.0000
5000
Let’s put the coefficients and their standard errors on a diagram and then discuss the interpretation of the results.
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 28/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
(https://stats.oarc.ucla.edu/wp-content/uploads/2022/02/output_example_3.png)
Relative effects
When there is more than one arrow from X to M, we now have relative effects. As in regression, we have coefficients for all but one of the
categories of X. In this example, we used indicator (AKA dummy) coding. This is coding system is the one most commonly used with
regression. The output shows the relative direct effects on X, the relative indirect effects on X, and the relative total effects on X. When
interpreting relative effects, you need to remember which group (or category or level) of X is the reference group. In the example above,
detail3 (X) is coded as 0, 1 and 2, with the group coded as 0 used as the reference group. The path for a1 is the mean of M1 – the mean of
M0; the path for a2 is the mean of M2 – the mean of M0. The interpretation of the single coefficient from M to Y does not change even
though there are multiple paths from X to M. Part 5 of the output gives the relative direct, relative indirect and relative total effects.
Omnibus (AKA multi-degree-of-freedom) tests of these effects are also provided. These omnibus tests are used to determine if the overall
effect is statistically significant.
PROCESS has four choices for coding systems: indicator (AKA dummy) (mcx = 1), sequential (mcx = 2), Helmert (mcx = 3) and effect coding
(mcx = 4). You should choose which coding system to use based on the comparisons you wish to make. As in regression, the omnibus
test will be the same regardless of which coding system you use, but the values of the coefficients will be different, and the associated p-
values may be different as well (meaning that a coefficient may be statistically significant using one coding system and not statistically
significant using a different coding system).
Let’s calculate the relative indirect effects and the relative total effects by hand. For the a1 path, 6.7527*0.4771 = 3.2217 (with rounding
error). For the a2 path, 13.4727*0.4771 = 6.4278 (with rounding error). For the relative total effects, for the a1 path, we have 3.2217 +
4.3066 = 7.5283 (with rounding error). For the a2 path, we have 6.4278 + 8.8965 = 15.3243 (with rounding error).
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 29/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
(https://stats.oarc.ucla.edu/wp-
content/uploads/2022/03/simple_mediation_with_two_covariates.png)
process y = opinion /x = detail /m = age /model = 4 /total = 1 /cov = bcovar ccovar /seed = 30802022.
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 30/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
**************************************************************************
Model : 4
Y : opinion
X : detail
M : age
Covariates:
bcovar ccovar
Sample
Size: 200
Custom
Seed: 30802022
**************************************************************************
OUTCOME VARIABLE:
age
Model Summary
Model
coeff se t p LLCI ULCI
**************************************************************************
OUTCOME VARIABLE:
opinion
Model Summary
Model
coeff se t p LLCI ULCI
OUTCOME VARIABLE:
opinion
Model Summary
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 31/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
Model
coeff se t p LLCI ULCI
Total effect of X on Y
Direct effect of X on Y
Indirect effect(s) of X on Y:
95.0000
5000
The interpretation of the path coefficients is just the same as before, except that we now add “holding the covariates constant” to the
discussion of the path coefficients. Below is the diagram with the coefficients and standard errors.
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 32/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
(https://stats.oarc.ucla.edu/wp-
content/uploads/2022/03/simple_mediation_with_two_covariates_out.png)
process y = opinion /x = detail /m = age /model = 4 /total = 1 /cov = bcovar ccovar /seed = 30802022 /hc = 4.
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 33/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
**************************************************************************
Model : 4
Y : opinion
X : detail
M : age
Covariates:
bcovar ccovar
Sample
Size: 200
Custom
Seed: 30802022
**************************************************************************
OUTCOME VARIABLE:
age
Model Summary
Model
coeff se(HC4) t p LLCI ULCI
**************************************************************************
OUTCOME VARIABLE:
opinion
Model Summary
Model
coeff se(HC4) t p LLCI ULCI
OUTCOME VARIABLE:
opinion
Model Summary
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 34/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
Model
coeff se(HC4) t p LLCI ULCI
Total effect of X on Y
Direct effect of X on Y
Indirect effect(s) of X on Y:
95.0000
5000
NOTE: A heteroscedasticity consistent standard error and covariance matrix estimator was used.
Parallel mediation
In a parallel mediation model, you have two (or more) mediators, both of which are between the predictor and outcome. We will continue
to use the variable age as one mediator, and we will add the variable impact as the second mediator. In this example, there is no causal
path between the two mediators, but one could be added if theory predicted a path to be there. Of course, now you have two sets of
indirect effects: the indirect effect going through the first mediator, and the indirect effect going through the second mediator. In
PROCESS, you simply add list all of the mediators on the m subcommand and use model 4. Below is a path diagram describing the
model. Following that are the series of regression commands that could be run in SPSS to get the path coefficients. A few of the tables
from each regression output have been omitted to save space.
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 35/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
(https://stats.oarc.ucla.edu/wp-
content/uploads/2022/03/parallel_mediation_model-3.png)
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 36/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
(https://stats.oarc.ucla.edu/wp-
content/uploads/2022/03/regression7.png)
(https://stats.oarc.ucla.edu/wp-
content/uploads/2022/03/regression8.png)
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 37/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
(https://stats.oarc.ucla.edu/wp-
content/uploads/2022/03/regression9.png)
The PROCESS command for this model is given below. Notice that we are still using model 4 but have listed more than one mediator on
the m subcommand. In a parallel mediation model, the order in which the mediators are listed does not matter. We continue to use the
total and seed optional subcommands.
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 38/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
**************************************************************************
Model : 4
Y : opinion
X : detail
M1 : age
M2 : impact
Sample
Size: 200
Custom
Seed: 30802022
**************************************************************************
OUTCOME VARIABLE:
age
Model Summary
Model
coeff se t p LLCI ULCI
**************************************************************************
OUTCOME VARIABLE:
impact
Model Summary
Model
coeff se t p LLCI ULCI
**************************************************************************
OUTCOME VARIABLE:
opinion
Model Summary
Model
coeff se t p LLCI ULCI
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 39/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
OUTCOME VARIABLE:
opinion
Model Summary
Model
coeff se t p LLCI ULCI
Total effect of X on Y
Direct effect of X on Y
Indirect effect(s) of X on Y:
95.0000
5000
The interpretation of the path coefficients is the same as in previous models, except that now we include “holding both mediators
constant” when discussing the direct effect or “holding the other mediator constant” when discussing one of the mediators. Looking at
the second to last part of the output above, we see that we are given the total indirect effect, 0.2295, as well as the indirect effect via
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 40/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
(https://stats.oarc.ucla.edu/wp-
content/uploads/2022/03/parallel_mediation_model_out.png)
Serial mediation
In a serial mediation model, the mediators are ordered between the predictor and the outcome. There may or may not be causal arrows
between the mediators; that should be determined by theory. When specifying a serial mediation model, the order in which the mediators
are listed on the m subcommand is important! The first mediator that you list is the first mediator in the model, the second mediator that
you list is the second one in the model, and so on. PROCESS will allow up to six mediators in a single model, although there are few
research situations (and datasets) that would allow for so many mediators.
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 41/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
(https://stats.oarc.ucla.edu/wp-
content/uploads/2022/03/serial_mediation_model.png)
process y = opinion /x = detail /m = age impact /total = 1 /contrast = 1 /model = 6 /seed = 30802022.
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 42/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
**************************************************************************
Model : 6
Y : opinion
X : detail
M1 : age
M2 : impact
Sample
Size: 200
Custom
Seed: 30802022
**************************************************************************
OUTCOME VARIABLE:
age
Model Summary
Model
coeff se t p LLCI ULCI
**************************************************************************
OUTCOME VARIABLE:
impact
Model Summary
Model
coeff se t p LLCI ULCI
**************************************************************************
OUTCOME VARIABLE:
opinion
Model Summary
Model
coeff se t p LLCI ULCI
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 43/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
OUTCOME VARIABLE:
opinion
Model Summary
Model
coeff se t p LLCI ULCI
Total effect of X on Y
Direct effect of X on Y
Indirect effect(s) of X on Y:
95.0000
5000
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 44/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
(https://stats.oarc.ucla.edu/wp-content/uploads/2022/03/output_example_5.png)
w: first moderator
z: second moderator
model: specify the model number (models numbers found in Appendix A of Introduction to Mediation, Moderation and Conditional
Process Analysis: A Regression-based Approach, Third Edition by Andrew F. Hayes (2022).)
seed: allows user to set the seed so that analyses will replicate exactly
conf: allows user to set the confidence interval (default is 95% CIs)
boot: allows user to set the number of bootstrapped samples (default is 5000)
modelbt: = 1: requests bootstrapped standard errors and confidence intervals for all model estimates
hc: = 0: HC0: Based on the original asymptotic or large sample robust, empirical, or “sandwich” estimator of the
covariance matrix of the
parameter estimates. The middle part of the sandwich contains squared OLS
(ordinary least squares) or squared weighted WLS (weighted
least squares) residuals.
= 1: HC1: A finite sample modification of HC0 multiplying it by N/(N p) where N is the sample size and p is the number of non redundant
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 45/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
= 1: HC1: A finite-sample modification of HC0, multiplying it by N/(N-p), where N is the sample size and p is the
number of non-redundant
parameters in the model.
= 2 HC2: A modification of HC0 that involves dividing the squared residual by 1-h, where h is the leverage for the case.
= 3: HC3: A modification of HC0 that approximates a jackknife estimator. Squared residuals are divided by the
square of 1-h. This method
is the default if ROBUST is specified without specifying a method.
= 4: HC4: A modification of HC0 that divides the squared residuals by 1-h to a power that varies according to h,
N, and p, with an upper
limit of 4. NOTE: These definitions are quoted from page 852 of the SPSS version 28 Command Syntax Reference.
decimals: controls the number of decimal places shown in the output; use SPSS formats, such as f10.2 for two decimal places; the default
is four.
mcx: indicates that the X variable is multicategorical; = 1: indicator (AKA dummy) coding; = 2: sequential coding; = 3: Helmert coding; = 4:
effect coding
mcw: indicates that the W variable is multicategorical; = 1: indicator (AKA dummy) coding; = 2: sequential coding; = 3: Helmert coding; = 4:
effect coding
mcz: indicates that the Z variable is multicategorical; = 1: indicator (AKA dummy) coding; = 2: sequential coding; = 3: Helmert coding; = 4:
effect coding
longname: variable names should be eight characters or less. If the variable names are longer than eight characters, use longname = 1.
However, PROCESS still only looks at the first eight characters of the variable name. This will be problematic if two or more variable
names have the same first eight characters.
normal: calculates the standard errors using normal theory (not recommended).
contrast: = 1: a test for the difference between their regression weights; = 2: a test for the difference of the absolute values of their
regression weights, may be useful if you want to compare one positive indirect effect to a negative one in order to assess whether the
positive one is (in absolute terms) significantly larger than the negative one.
bmatrix: (FROM variables are columns, TO variables are rows) (BMATRIX: Paths freely estimated (1) and fixed to zero (0))
wmatrix: (paths moderated and not moderated by W) (FROM variables are columns, TO variables are rows)
zmatrix: (paths moderated and not moderated by Z) (FROM variables are columns, TO variables are rows)
maybe not even in your dataset, causes both the mediator and the outcome. When thinking about experiments and causality, most
researchers immediately think of randomly assigning subjects to experimental groups or conditions; however, such assignment does not
mean that mediator causes the outcome.
In his paper Mediation Analysis: A Practitioner’s Guide (2015) VanderWeele lists four assumptions that need to be assessed so that the
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 46/47
5/24/22, 1:32 PM Introduction to Mediation Models with the PROCESS Marco in SPSS
In his paper Mediation Analysis: A Practitioner s Guide (2015), VanderWeele lists four assumptions that need to be assessed so that the
direct and indirect effects are interpretable.
As you can see, many of these assumptions are not testable using the dataset at hand, but rather must be made on a logical basis.
With respect to writing up a mediation analysis, please be sure to check on the current guidelines. They have changed quite a bit in the
last few years, and they will probably continue to change for some time to come.
https://stats.oarc.ucla.edu/other/mult-pkg/seminars/spss-process/ 47/47