+ All Categories
Home > Documents > Moderated Mediation Analysis - Statistical Horizons · mediation” by Z, quantifies how the...

Moderated Mediation Analysis - Statistical Horizons · mediation” by Z, quantifies how the...

Date post: 08-Jun-2020
Category:
Upload: others
View: 1 times
Download: 0 times
Share this document with a friend
8
Moderated Mediation Analysis Andrew Hayes, Ph.D. Upcoming Seminar: October 27-28, 2017, Philadelphia, PA
Transcript
Page 1: Moderated Mediation Analysis - Statistical Horizons · mediation” by Z, quantifies how the indirect effect of X changes as Z changes but W is fixed. • Test whether this index

Moderated Mediation Analysis

Andrew Hayes, Ph.D.

Upcoming Seminar: October 27-28, 2017, Philadelphia, PA

Page 2: Moderated Mediation Analysis - Statistical Horizons · mediation” by Z, quantifies how the indirect effect of X changes as Z changes but W is fixed. • Test whether this index

1

copyright 2017 Andrew F. Hayes [email protected] distribution is prohibited

Two moderators of the same path

X

M

Y

W

Z

A first stage dual moderatedmediation model

X

M

Y

W

Z

A second stage dual moderatedmediation model

Schuler, J., Brandstatter, V., & Baumann, N. (2013). Failure cue priming and impaired cognitive performance-analyses of avoidance motivation as a mediator and fear of failure as a moder-ator. European Journal of Social Psychology, 43, 335-343.

Dixon, G. (2016). Applying the gateway belief model to genetically modified food perceptions: New insights and additional questions. Journal of Communication, 66, 888-908.

bMXciY 2ˆ

The indirect effect is an additive linear function of two moderators

X

M

Y

W

Z

The model for M can be written in equivalent form as

(a1 + a4W + a5Z)b

Indirect effect of X

qX→M = a1 + a4W + a5Z

b

a1b + a4bW + a5bZ

or

XZaXWaZaWaXaiM 543211ˆ

ZaWaXZaWaaiM 325411 )(ˆ

qX→Mb =

or ZaWaXiM MX 321ˆ q

ZaWaaMX 541 qwhere is the conditional effect of X on M. It is a linear function of both W and Z.

which is a linear functionof both W and Z.

Page 3: Moderated Mediation Analysis - Statistical Horizons · mediation” by Z, quantifies how the indirect effect of X changes as Z changes but W is fixed. • Test whether this index

2

copyright 2017 Andrew F. Hayes [email protected] distribution is prohibited

Index of “partial moderated mediation”

Indirect effect of X:

• a4b, the “index of partial moderated mediation” by W, quantifies how the indirect effect of X changes as W changes but Z is fixed.

• Test whether this index is different from zero to test “partial moderated mediation.” of X’s effect on Y through M by W. PROCESS can do this using a bootstrap CI.

Ind

irec

t ef

fect

of

X

W

Z = z1

Z = z2

Z = z3

a4b is the slope of these lines

When visualized, the model of the indirect effect of X might look something like this(depending on the estimates of the regression coefficients)

(a1+ a4W + a5Z)b = a1b + a4bW + a5bZ

Index of “partial moderated mediation”

When visualized, the model of the indirect effect of X might look something like this:(depending on the estimates of the regression coefficients)

• a5b, the “index of partial moderated mediation” by Z, quantifies how the indirect effect of X changes as Z changes but W is fixed.

• Test whether this index is different from zero to test “partial moderated mediation.” of X’s effect on Y through M by Z. PROCESS can do this using a bootstrap CI.

Ind

irec

t ef

fect

of

X

Z

W = w1

W = w2

W = w3

a5b is the slope of these lines

Indirect effect of X: (a1+ a4W + a5Z)b = a1b + a4bW + a5bZ

Page 4: Moderated Mediation Analysis - Statistical Horizons · mediation” by Z, quantifies how the indirect effect of X changes as Z changes but W is fixed. • Test whether this index

3

copyright 2017 Andrew F. Hayes [email protected] distribution is prohibited

An example

208 Palestinian children between the ages of 10 and 14 living in Gaza and measured in 2006.

TRAUMA: A count of exposure to traumaticevents during the Al-Aqsa Intifada (e.g., shellingof home, being shot, losing family members,witnessing of killing). Range: 0 to 18

DEPRESS: Depressive symptoms measured by theChild Depression Inventory (CDI). Range 1 to 28.

FRQUAL: Quality of a child’s friendships asmeasured with the Friendship Qualitiesquestionnaire. Eight items scaled 1 to 5 e.g., “I have friends with whom can share my secrets”

AGE: Child age in years

SEX: Sex of the child (0 = female, 1 = male)

The data: GAZA

GAZA.SAV

GAZA.SAS

Page 5: Moderated Mediation Analysis - Statistical Horizons · mediation” by Z, quantifies how the indirect effect of X changes as Z changes but W is fixed. • Test whether this index

4

copyright 2017 Andrew F. Hayes [email protected] distribution is prohibited

The model

X

M

Y

W

Z

TraumaticExperiences

Depression

Friendship quality

Age

Sex

They propose a model in which friendship quality mediates the effect of trauma on depression, with that mechanism varying by both sex and age due to the effect of trauma on friendship quality varying as a function of sex and age.

X

M

Y

W

Z

TraumaticExperiences

Depression

Friendship quality

Age

Sex

bMXciY 2ˆ

XZaXWaZaWaXaiM 543211ˆ

Estimation in PROCESS

This is PROCESS model 9

process y=depress/x=trauma/m=frqual/w=age/z=sex/moments=1/plot=1/boot=10000/model=9.

%process (data=gaza,y=depress,x=trauma,m=frqual,w=age,z=sex,moments=1,plot=1,

boot=10000,model=9);

Page 6: Moderated Mediation Analysis - Statistical Horizons · mediation” by Z, quantifies how the indirect effect of X changes as Z changes but W is fixed. • Test whether this index

5

copyright 2017 Andrew F. Hayes [email protected] distribution is prohibited

PROCESS output

Model : 9

Y : depress

X : trauma

M : frqual

W : age

Z : sex

Sample

Size: 208

**************************************************************************

OUTCOME VARIABLE:

frqual

Model Summary

R R-sq MSE F df1 df2 p

.3062 .0938 .5754 4.1811 5.0000 202.0000 .0012

Model

coeff se t p LLCI ULCI

constant 1.8247 1.1547 1.5803 .1156 -.4521 4.1016

trauma .2232 .1220 1.8299 .0687 -.0173 .4638

age .2424 .1071 2.2636 .0247 .0312 .4535

Int_1 -.0288 .0111 -2.5921 .0102 -.0507 -.0069

sex -.9141 .2452 -3.7276 .0003 -1.3976 -.4306

Int_2 .1219 .0323 3.7767 .0002 .0582 .1855

Product terms key:

Int_1 : trauma x age

Int_2 : trauma x sex

Test(s) of highest order unconditional interaction(s):

R2-chng F df1 df2 p

X*W .0301 6.7192 1.0000 202.0000 .0102

X*Z .0640 14.2636 1.0000 202.0000 .0002

----------

Output K

a1

a4

a5

Notice that the effect of trauma on friendship quality varies significantly by both age and sex. More on this later.

XZXWZWXM 122.0029.0914.0242.0223.0825.1ˆ

X

M

Y

W

Z

TraumaticExperiences

Depression

Friendship quality

Age

Sex

The conditional effect of X on M

XZXWZWXM 122.0029.0914.0242.0223.0825.1ˆ

XZaXWaZaWaXaiM 543211ˆ

ZaWaXZaWaaiM 325411 )(ˆ

can be written in equivalent form as

and so X’s effect on M is ZWMX 122.0029.0223.0 q

qX→M

Page 7: Moderated Mediation Analysis - Statistical Horizons · mediation” by Z, quantifies how the indirect effect of X changes as Z changes but W is fixed. • Test whether this index

6

copyright 2017 Andrew F. Hayes [email protected] distribution is prohibited

DATA LIST FREE/

trauma age sex frqual .

BEGIN DATA.

3.0987 10.2103 .0000 4.0801

7.2548 10.2103 .0000 3.7857

11.4109 10.2103 .0000 3.4914

3.0987 10.2103 1.0000 3.5436

7.2548 10.2103 1.0000 3.7557

11.4109 10.2103 1.0000 3.9678

3.0987 11.3462 .0000 4.2540

7.2548 11.3462 .0000 3.8237

11.4109 11.3462 .0000 3.3934

3.0987 11.3462 1.0000 3.7175

7.2548 11.3462 1.0000 3.7937

11.4109 11.3462 1.0000 3.8698

3.0987 12.4820 .0000 4.4280

7.2548 12.4820 .0000 3.8617

11.4109 12.4820 .0000 3.2954

3.0987 12.4820 1.0000 3.8915

7.2548 12.4820 1.0000 3.8316

11.4109 12.4820 1.0000 3.7718

END DATA.

GRAPH/SCATTERPLOT=

trauma WITH frqual BY age

/PANEL ROWVAR= sex.

In SPSS, the plot option in PROCESS produces a program you can use to produce a rough visualdepiction of the model. Or use the information in the table to plot in your preferred software.

Z

X

PROCESS provides what we need to visualize the model of M

Output K

10.210

11.346

12.482

Age (W)

In SAS

In SAS, write a program around the data to produce a plot.

data gazaplot;

input trauma sex age frqual;

datalines;

3.0987 10.2103 .0000 4.0801

7.2548 10.2103 .0000 3.7857

11.4109 10.2103 .0000 3.4914

3.0987 10.2103 1.0000 3.5436

7.2548 10.2103 1.0000 3.7557

11.4109 10.2103 1.0000 3.9678

3.0987 11.3462 .0000 4.2540

7.2548 11.3462 .0000 3.8237

11.4109 11.3462 .0000 3.3934

3.0987 11.3462 1.0000 3.7175

7.2548 11.3462 1.0000 3.7937

11.4109 11.3462 1.0000 3.8698

3.0987 12.4820 .0000 4.4280

7.2548 12.4820 .0000 3.8617

11.4109 12.4820 .0000 3.2954

3.0987 12.4820 1.0000 3.8915

7.2548 12.4820 1.0000 3.8316

11.4109 12.4820 1.0000

3.7718proc sgpanel;

panelby sex / columns=1;

series x=trauma y=frqual/group=age lineattrs

=(color=black);run;

Page 8: Moderated Mediation Analysis - Statistical Horizons · mediation” by Z, quantifies how the indirect effect of X changes as Z changes but W is fixed. • Test whether this index

7

copyright 2017 Andrew F. Hayes [email protected] distribution is prohibited

Focal predict: trauma (X)

Mod var: age (W)

Mod var: sex (Z)

Conditional effects of the focal predictor at values of the moderator(s):

age sex Effect se t p LLCI ULCI

10.2103 .0000 -.0708 .0257 -2.7593 .0063 -.1214 -.0202

10.2103 1.0000 .0510 .0251 2.0335 .0433 .0015 .1005

11.3462 .0000 -.1035 .0258 -4.0078 .0001 -.1545 -.0526

11.3462 1.0000 .0183 .0173 1.0575 .2915 -.0158 .0525

12.4820 .0000 -.1363 .0315 -4.3204 .0000 -.1984 -.0741

12.4820 1.0000 -.0144 .0170 -.8470 .3980 -.0479 .0191

The conditional effect of X on M

Female Male

The differences in slope conditioned on the second moderator are constant across values of the second moderator. These depict two-way and not “three way” interaction.

10.210

11.346

12.482

Age (W)

ZWMX 122.0029.0223.0 q

W Z

qX→M is the slope of these lines

M

(X)


Recommended