lecture slides stats1.13.l13.air

54
Statistics One Lecture 13 Moderation 1

Upload: atutorte

Post on 23-Jun-2015

115 views

Category:

Education


0 download

DESCRIPTION

Lecture slides stats1.13.l13.air

TRANSCRIPT

Page 1: Lecture slides stats1.13.l13.air

Statistics One

Lecture 13 Moderation

1

Page 2: Lecture slides stats1.13.l13.air

Three segments

•  Moderation Example 1 •  Centering predictors •  Moderation Example 2

2

Page 3: Lecture slides stats1.13.l13.air

Lecture 13 ~ Segment 1

Moderation Example 1

3

Page 4: Lecture slides stats1.13.l13.air

Moderation & Mediation

•  Moderation and Mediation may sound alike but they are quite different – Moderation (Lecture 13) – Mediation (Lecture 14) – Both demonstrated in R (Lab 7)

4

Page 5: Lecture slides stats1.13.l13.air

Moderation

5

Page 6: Lecture slides stats1.13.l13.air

Mediation

6

Mediator

Page 7: Lecture slides stats1.13.l13.air

An example

•  X: Experimental manipulation – Stereotype threat

•  Y: Behavioral outcome –  IQ test score

•  Z: Moderator – Working memory capacity (WMC)

7

Page 8: Lecture slides stats1.13.l13.air

Moderation

•  A moderator variable (Z) will enhance a regression model if the relationship between X and Y varies as a function of Z

8

Page 9: Lecture slides stats1.13.l13.air

Moderation

•  Experimental research – The manipulation of an IV (X) causes change in

a DV (Y) – A moderator variable (Z) implies that the effect

of the IV on the DV (X on Y) is NOT consistent across the distribution of Z

9

Page 10: Lecture slides stats1.13.l13.air

Moderation

•  Correlational research – Assume a correlaton between X and Y – A moderator variable (Z) implies that the

correlation between X and Y is NOT consistent across the distribution of Z

10

Page 11: Lecture slides stats1.13.l13.air

Moderation

•  If X and Y are correlated then we can use regression to predict Y from X

•  Y = B0 + B1X + e •  CAUTION! •  If there is a moderator, Z, then B1 will NOT be

representative across all Z –  The relationship between X and Y is different at different

levels of Z

11

Page 12: Lecture slides stats1.13.l13.air

Moderation model

•  If both X and Z are continuous

– Y = B0 + B1X + B2Z + B3(X*Z) + e

12

Page 13: Lecture slides stats1.13.l13.air

Moderation model

•  If X is categorical* and Z is continuous

– Y = B0 + B1(D1) + B2(D2) + B3Z + B4(D1*Z) + B5(D2*Z) e

*3 levels of X

13

Page 14: Lecture slides stats1.13.l13.air

How to test for moderation

•  If both X and Z are continuous – Model 1: No moderation

•  Y = B0 + B1X + B2Z + e

– Model 2: Moderation •  Y = B0 + B1X + B2Z + B3(X*Z) + e

14

Page 15: Lecture slides stats1.13.l13.air

How to test for moderation

•  If X is categorical* and Z is continuous – Model 1: No moderation

•  Y = B0 + B1(D1) + B2(D2) + B3Z + e

– Model 2: Moderation •  Y = B0 + B1(D1) + B2(D2) + B3Z +

B4(D1*Z) + B5(D2*Z) + e

15

Page 16: Lecture slides stats1.13.l13.air

How to test for moderation

•  Compare Model 1 and Model 2 in terms of overall variance explained, that is, R2

– NHST available for this comparison •  Evaluate B values for predictors associated

with the moderation effect –  (X*Z) –  (D1*Z) and (D2*Z)

16

Page 17: Lecture slides stats1.13.l13.air

Back to the example

•  X: Experimental manipulation – Stereotype threat

•  Y: Behavioral outcome –  IQ test score

•  Z: Moderator – Working memory capacity (WMC)

17

Page 18: Lecture slides stats1.13.l13.air

Simulated experiment & data

•  Students completed a working memory task •  Students then randomly assigned to one of

three experimental conditions – Explicit threat (n = 50) –  Implicit threat (n = 50) – Control (n = 50)

•  Students then completed an IQ test

18

Page 19: Lecture slides stats1.13.l13.air

Simulated experiment & data

•  Experimental condition is categorical so dummy coding is required – Let the Control group be the referent – Let D1 = Explicit threat – Let D2 = Implicit threat

19

Page 20: Lecture slides stats1.13.l13.air

Results: Summary statistics

20

Page 21: Lecture slides stats1.13.l13.air

Results: Summary statistics

21

Page 22: Lecture slides stats1.13.l13.air

Results: Model 1

22

Page 23: Lecture slides stats1.13.l13.air

Results: Model 2

23

Page 24: Lecture slides stats1.13.l13.air

Results: Model comparison

24

Page 25: Lecture slides stats1.13.l13.air

Results: Scatterplot

•  Next slide depicts moderation visually

25

Page 26: Lecture slides stats1.13.l13.air

26

Page 27: Lecture slides stats1.13.l13.air

END SEGMENT

27

Page 28: Lecture slides stats1.13.l13.air

Lecture 13 ~ Segment 2

Centering predictors

28

Page 29: Lecture slides stats1.13.l13.air

Centering predictors

•  To center means to put in deviation form •  XC = X - M

•  Why center? – Two reasons

•  Conceptual •  Statistical

Page 30: Lecture slides stats1.13.l13.air

Centering predictors

•  Conceptual reason – Suppose

•  Y = child’s verbal ability •  X = mother’s vocabulary •  Z = child’s age

Page 31: Lecture slides stats1.13.l13.air

Centering predictors

•  Conceptual reason –  The intercept, B0, is the predicted score on Y when all

predictors (X, Z) are zero –  If X = zero or Z = zero is meaningless, or impossible,

then B0 will be difficult to interpret –  In contrast, if X = zero and Z = zero, are the average

then B0 is easy to interpret

Page 32: Lecture slides stats1.13.l13.air

Centering predictors

•  Conceptual reason –  The regression coefficient B1 is the slope for X

assuming an average score on Z – No moderation effect implies that B1 is consistent

across the entire distribution of Z

Page 33: Lecture slides stats1.13.l13.air

Centering predictors

•  Conceptual reason –  In contrast, a moderation effect implies that B1 is NOT

consistent across the entire distribution of Z – Where in the distribution of Z is B1 most

representative of the relationship between X & Y? –  Let’s look at this graphically…

Page 34: Lecture slides stats1.13.l13.air

Uncentered, Additive

0

10

20

30

40

50

10 8 6 4 2 0246810

246810

X

Z

Ý

Ý = 2 +.6(X) + .2(Z)

Page 35: Lecture slides stats1.13.l13.air

Centered, Additive

0

10

20

30

40

50

5 3 1 -1 -3 -5-3-1135

-3-1135

Ý = 6 +.6(X) + .2(Z)

Ý

X

Z

Page 36: Lecture slides stats1.13.l13.air

Uncentered, Moderation

0

10

20

30

40

50

10 8 6 4 2 0246810

246810

Ý = 2 +.6(X) + .2(Z) + .4(X*Z)

Ý

X

Z

Page 37: Lecture slides stats1.13.l13.air

Centered, Moderation

0

10

20

30

40

50

5 3 1 -1 -3 -5-3-1135

-3-1135

Ý = 16 + 2.6(X) + 2.2(Z) + .4(X*Z)

Ý

X

Z

Page 38: Lecture slides stats1.13.l13.air

Centering predictors

•  Statistical reason – The predictors, X and Z, can become highly

correlated with the product, (X*Z) •  Multicolinearity: when two predictor variables in a

GLM are so highly correlated that they are essentially redundant and it becomes difficult to estimate B values associated with each predictor

Page 39: Lecture slides stats1.13.l13.air

Segment Summary

•  Centering predictors – Convert raw scores to deviation scores

•  XC = X – M

•  Reasons for centering – Conceptual

•  Regression constant will be more meaningful – Statistical

•  Avoid multicolinearity

Page 40: Lecture slides stats1.13.l13.air

END SEGMENT

40

Page 41: Lecture slides stats1.13.l13.air

Lecture 13 ~ Segment 3

Moderation Example 2

41

Page 42: Lecture slides stats1.13.l13.air

Back to the example

•  X: Experimental manipulation – Stereotype threat

•  Y: Behavioral outcome –  IQ test score

•  Z: Moderator – Working memory capacity (WMC)

42

Page 43: Lecture slides stats1.13.l13.air

How to test for moderation

•  If X is categorical* and Z is continuous – Model 1: No moderation

•  Y = B0 + B1(D1) + B2(D2) + B3Z + e

– Model 2: Moderation •  Y = B0 + B1(D1) + B2(D2) + B3Z +

B4(D1*Z) + B5(D2*Z) + e

43

Page 44: Lecture slides stats1.13.l13.air

WAIT! Center continuous predictor

•  If X is categorical* and Z is continuous – Model 1: No moderation

•  Y = B0 + B1(D1) + B2(D2) + B3Z.center + e

– Model 2: Moderation •  Y = B0 + B1(D1) + B2(D2) + B3Z.center +

B4(D1*Z.center) + B5(D2*Z.center) + e

44

Page 45: Lecture slides stats1.13.l13.air

Simulated experiment & data

•  Students completed a working memory task •  Students then randomly assigned to one of

three experimental conditions – Explicit threat (n = 50) –  Implicit threat (n = 50) – Control (n = 50)

•  Students performed an IQ test

45

Page 46: Lecture slides stats1.13.l13.air

Simulated data

•  Experimental condition is categorical so dummy coding is required – Let the Control group be the referent – Let D1 = Explicit threat – Let D2 = Implicit threat

46

Page 47: Lecture slides stats1.13.l13.air

Results: Model 1

47

Page 48: Lecture slides stats1.13.l13.air

Results: Model 1, Centered

48

Page 49: Lecture slides stats1.13.l13.air

Results: Model 2

49

Page 50: Lecture slides stats1.13.l13.air

Results: Model 2, Centered

50

Page 51: Lecture slides stats1.13.l13.air

Results: Model comparison

51

Page 52: Lecture slides stats1.13.l13.air

Results: Model comparison, Centered

52

Page 53: Lecture slides stats1.13.l13.air

END SEGMENT

53

Page 54: Lecture slides stats1.13.l13.air

END LECTURE 13

54