Professional Documents
Culture Documents
Assignment 6 and 7
Assignment 6 and 7
Assignment 6 and 7
• After controlling for the influence of income, is there
still a significant strong and positive relationship
between age and support for market economy?
• HA: After controlling for the influence of income, there
is still a significant strong and positive relationship
between age and support for market economy.
• HO: After controlling for the influence of income, there
is no longer a significant strong and positive
relationship between age and support for market
economy.
Correlations
Control Variables Age Support Income
-none-a Age Correlation 1.000 .834 .761
Significance (2-tailed) . .000 .000
df 0 16 16
Support Correlation .834 1.000 .637
Significance (2-tailed) .000 . .004
df 16 0 16
Income Correlation .761 .637 1.000
Significance (2-tailed) .000 .004 .
df 16 16 0
1
11/10/2018
2
11/10/2018
Assignment 2:
Using the Survey Data, conduct a Standard MR, Hierarchical MR
and Stepwise MR with Life Satisfaction (tlifesat) as the criterion
variable, and Optimism (toptim), Mastery (tmast) and Self-Esteem
(tslfest) as predictors
3
11/10/2018
4
11/10/2018
5
11/10/2018
Mediation Analysis
• Examines how two variables precede or cause
a third variable
• Mediation implies a situation where the effect
of the IV on the DV can best be explained
using a third, “Mediator", variable.
• Mediation can be thought of as full / whole or
partial
6
11/10/2018
Mediation Analysis
X Y
c
Total Effect
M
a b
Indirect Effect
c’
X Y
c
Direct Effect
Mediation Analysis
• Partial Mediation = 0 < c’ < c
• Complete Mediation = c’ = 0
• Total Effect = direct effect + indirect effect
c = c’ + ab
• Indirect Effect = amount of mediation;
reduction of the effect of the causal variable
(X) on the outcome (Y)
ab = c – c’
7
11/10/2018
Mediation Analysis
• When to use:
1. Mediator provides a logical explanation for the
relation between IV and DV
2. Must be significant and substantial correlations
between
a. Predictor and Mediator variable
b. Mediator and Criterion variable
*correlation between Predictor and Criterion
doesn’t have to be significant or substantial
Mediation Analysis
• General Steps
1. Confirm the significance of the relationship between
the initial IV and MV (X M)
2. Confirm the significance of the relationship between
the initial IV and DV (X Y)
3. Confirm the significance of the relationship between
the initial MV and the DV in the presence of the IV
(M/X Y)
4. Confirm the insignificance (or the meaningful
reduction in effect) of the relationship between the
initial IV and the DV in the presence of the mediator
(X/M Y)
8
11/10/2018
Mediation Analysis
• SPSS Steps – (Baron & Kenny, 1986)
Conduct Simple Regression between X
and M – determine significance
Mediation Analysis
• Example
Use survey.sav
DV: Life Satisfaction
IV: Self-Esteem
MV: Optimism
9
11/10/2018
Mediation Analysis
Step 1: Simple Regression between X and M
Model Summary
Coefficientsa
Unstandardized Standardized
Coefficients Coefficients
Model B Std. Error Beta t Sig.
1 (Constant) 6.533 1.111 5.881 .000
Mediation Analysis
Step 2: Simple Regression between M and Y
Model Summary
Coefficientsa
Unstandardized Standardized
Coefficients Coefficients
Model B Std. Error Beta t Sig.
1 (Constant) 6.096 1.448 4.209 .000
10
11/10/2018
Mediation Analysis
Step 3: Simple Regression between X and Y
Model Summary
Coefficientsa
Unstandardized Standardized
Coefficients Coefficients
Model B Std. Error Beta t Sig.
1 (Constant) 1.809 1.790 1.010 .313
Mediation Analysis
Step 4: Multiple Regression of M and X on Y
Variables Entered/Removedb
Model Summary
Change Statistics
Std. Error
R Adjusted of the R Square F Sig. F
Model R Square R Square Estimate Change Change df1 df2 Change
1 .549a .301 .298 5.667 .301 92.776 2 430 .000
a. Predictors: (Constant), toptim, tslfest
11
11/10/2018
Mediation Analysis
Step 4: Multiple Regression of M and X on Y
Coefficientsa
Standar
dized
Unstandardized Coefficie Collinearity
Coefficients nts Correlations Statistics
tslfest .390 .061 .311 6.375 .000 .486 .294 .257 .681 1.469
toptim .471 .074 .309 6.331 .000 .485 .292 .255 .681 1.469
Mediation Analysis
Optimism
a b
B =.465** B=.737*
*
c
B=.613** Life
Self-Esteem
Satisfaction
C’
B=.390**
12
11/10/2018
Mediation Analysis
• Sample Interpretation
Regression analysis was used to investigate the hypothesis that Optimism
mediates the effect of Self-Esteem on Life Satisfaction. Results indicated
that Self-Esteem was a significant predictor of Optimism, B = .465, t =
14.214, p < .01, and that Optimism was a significant predictor of Life
Satisfaction, B = .737, t = 11.482 p < .01. These results support the
mediational hypothesis. Self-Esteem was still a significant predictor of Life
Satisfaction after controlling for the mediator, Optimism, B = .390, t =
6.375, p < .01. Its predictive power was slightly lower though than when
Optimism was factored into the relationship B = .613, t = 11.549, p < .01,
which is consistent with partial mediation. Approximately 30% of the
variance in Life Satisfaction was accounted for by the predictors (R2 = .301).
Mediation Analysis
• Using Hayes PROCESS
Choose
Choose Mediator
Analyze Independent
Variable (M)
Variable (X)
Choose Model
Choose Outcome
Regression Number (4 – for
Variable (Y)
simple mediation)
13
11/10/2018
Mediation Analysis
Run MATRIX procedure:
************* PROCESS Procedure for SPSS Release 2.16.1 *****************
Written by Andrew F. Hayes, Ph.D. www.afhayes.com
Documentation available in Hayes (2013). www.guilford.com/p/hayes3
*************************************************************************
*Model = 4
Y = tlifesat
X = tslfest
M = toptim
Sample size 433
*************************************************************************
Outcome: toptim
Model Summary
R R-sq MSE F df1 df2 p
.565 .319 13.439 202.045 1.000 431.000 .000
Model
coeff se t p LLCI ULCI
constant 6.533 1.111 5.881 .000 4.350 8.717
tslfest .465 .033 14.214 .000 .400 .529
Mediation Analysis
Outcome: tlifesat
Model Summary
R R-sq MSE F df1 df2 p
.549 .301 32.115 92.776 2.000 430.000 .000
Model
coeff se t p LLCI ULCI
constant -1.146 1.785 -.642 .521 -4.654 2.363
toptim .471 .074 6.331 .000 .325 .618
tslfest .390 .061 6.375 .000 .270 .511
14
11/10/2018
Mediation Analysis
.390 .061 6.375 .000 .270 .511
Indirect effect of X on Y
Effect Boot SE BootLLCI BootULCI
toptim .219 .041 .145 .304
Partially standardized indirect effect of X on Y
Effect Boot SE BootLLCI BootULCI
toptim .032 .006 .021 .045
Completely standardized indirect effect of X on Y
Effect Boot SE BootLLCI BootULCI
toptim .175 .032 .116 .241
Ratio of indirect to total effect of X on Y
Effect Boot SE BootLLCI BootULCI
toptim .359 .073 .231 .519
Ratio of indirect to direct effect of X on Y
Effect Boot SE BootLLCI BootULCI
toptim .561 .196 .300 1.078
R-squared mediation effect size (R-sq_med)
Effect Boot SE BootLLCI BootULCI
toptim .170 .028 .118 .230
Normal theory tests for indirect effect
Effect se Z p
.219 .038 5.772 .000
Mediation Analysis
• Sample Interpretation
In step 1 of the mediation model, the regression of Self-Esteem on
Optimism was significant (B = .465, t = 14.214, p < .01). Step 2 also
showed the mediator, Optimism (B = .737, t = 11.482 p < .01)
significantly predicted Life Satisfaction. These results support the
mediational hypothesis. Step 3 of the analysis revealed that the
predictor, Self-Esteem alone significantly predicts the criterion, Life
Satisfaction (B = .613, t = 11.549, p < .01). However, in step 4 of the
process, the predictive power of the predictor dropped slightly
lower when the mediatior, Optimism was controlled for (B = .613, t =
11.549, p < .01), consistent with partial mediation. A Sobel test was
conducted and found the partial mediation of Optimism on the
relationship between Self Esteem and Life Satisfaction significant
(z=5.772, p<.001).
15
11/10/2018
MODERATOR ANALYSIS
MODERATOR ANALYSIS
• A moderator variable is one where there is a
different relationship between the main
variables in a study at different levels of the
moderator variable
• Vs Mediator: Mediator brings about the
relationship between two main variables in an
analysis; Moderator brings changes to the
magnitude of relationship between IV and DV
16
11/10/2018
MODERATOR ANALYSIS
• Moderation implies an interaction effect
between the moderator and the predictor
variables.
Z
X Y
MODERATOR ANALYSIS
• SPSS Steps (thru Hierarchical Regression)
Standardize Raw Scores (convert to Z-
scores) [Analyze – Descriptive Statistics
–Descriptives – Save standardized
variables)
17
11/10/2018
MODERATOR ANALYSIS
• SPSS Steps (continued)
Check Model Summary. Copy unstandardized
coefficients of last Model (under
If last Model is coefficients table) to a new SPSS
significant, go on to data window. Label variables as
next step. Otherwise, “a” for Constant, “b1” for IV,
“b2” for Moderator, “b3” for
process stops. Interaction Term
MODERATOR ANALYSIS
• SPSS Steps (continued)
Plot the predicted
criterion values. Select “Y” for Dependent
Analyze – General Variable. Choose “X” and “M”
Linear Model - for the Fixed Factors.
Univariate
18
11/10/2018
MODERATOR ANALYSIS
Use McNulty et al. (2008).sav
(McNulty et al. (2008) found a relationship between a
person’s Attractiveness and how much Support they
give their partner in newlyweds. Is this relationship
moderated by gender (i.e., whether the data were from
the husband or wife)?
DV: Support
IV: Attractiveness
Moderator: Gender
MODERATOR ANALYSIS
Model Summary
Change Statistics
ANOVAd
Model Sum of Squares df Mean Square F Sig.
1 Regression .136 1 .136 .135 .714a
Residual 162.864 162 1.005
Total 163.000 163
2 Regression .668 2 .334 .331 .718b
Residual 162.332 161 1.008
Total 163.000 163
3 Regression 13.908 3 4.636 4.975 .003c
Residual 149.092 160 .932
Total 163.000 163
a. Predictors: (Constant), Zscore: Attractiveness (Mean Rating out of 10)
b. Predictors: (Constant), Zscore: Attractiveness (Mean Rating out of 10), Gender
c. Predictors: (Constant), Zscore: Attractiveness (Mean Rating out of 10), Gender, Interaction Variable
d. Dependent Variable: Zscore: Support (from -1 to 1)
19
11/10/2018
MODERATOR ANALYSIS
a b1 b2 b3 X M Y
(Attractiveness) (Gender)
-0.055 -0.324 0.114 0.57 1 0 -0.379
-0.055 -0.324 0.114 0.57 0 0 -0.055
-0.055 -0.324 0.114 0.57 -1 0 0.269
-0.055 -0.324 0.114 0.57 1 1 0.305
-0.055 -0.324 0.114 0.57 0 1 0.059
-0.055 -0.324 0.114 0.57 -1 1 -0.187
20
11/10/2018
MODERATOR ANALYSIS
MODERATOR ANALYSIS
21
11/10/2018
MODERATOR ANALYSIS
• Using Hayes’ PROCESS
Choose Model
Analyze Number (1 – for “OK”
basic moderation)
Choose
Linear Independent
Variable (X)
Choose Outcome
PROCESS
Variable (Y)
MODERATOR ANALYSIS
Run MATRIX procedure:
**************************************************************************
Model = 1
Y = Support
X = Attract
M = Gender
Sample size
164
**************************************************************************
Outcome: Support
Model Summary
R R-sq MSE F df1 df2 p
.292 .085 .041 4.975 3.000 160.000 .003
Model
coeff se t p LLCI ULCI
constant .233 .016 14.755 .000 .202 .265
Gender .024 .032 .755 .451 -.039 .086
Attract -.007 .014 -.513 .609 -.035 .020
int_1 .105 .028 3.769 .000 .050 .161
22
11/10/2018
MODERATOR ANALYSIS
Product terms key:
*************************************************************************
Values for quantitative moderators are the mean and plus/minus one SD from mean.
Values for dichotomous moderators are the two values of the moderator.
MODERATOR ANALYSIS
Data for visualizing conditional effect of X on Y
Paste text below into a SPSS syntax window and execute to produce plot.
23
11/10/2018
MODERATOR ANALYSIS
Output from PROCESS
MODERATOR ANALYSIS
• Sample Interpretation
Moderator Analysis was conducted to test whether the relationship
between Attractiveness of Spouse and Support for the other significantly
differs between husbands and wives. Moderation is shown by a
significant interaction effect, and in this case the interaction is highly
significant, b = 0.105, t=3.769, p < .01, indicating that the relationship
between attractiveness and support is moderated by gender.
24
11/10/2018
MODERATOR ANALYSIS
• Sample Conclusion
Based on the analysis, we can conclude that
the relationship between attractiveness and
support is positive for wives (more attractive
wives give their husbands more support), but
negative for husbands (more attractive
husbands give their wives less support than
unattractive ones)
ASSIGNMENT 8
(data: McNulty et.al.(2008).sav)
1. Using PROCESS, run a mediation analysis with
Relationship Satisfaction as mediator between
Attractiveness (IV) and Support (DV).
a. Interpret results
b. Paste all necessary tables
2. Using PROCESS, test whether Gender is a significant
moderator between Attractiveness (IV) and Relationship
Satisfaction
a. Interpret results
b. Generate graph
c. Paste all necessary tables
25