Assignment #9
1) We want to examine the mediator for the following:( 35 points)
Dependent variable: Reason for missing the medication (TREAS)
Independent variable: Social support/available support (TSSQAV)
Mediator effect:focusing on other (TCOPEFO)
2) We want to examine the mediator for the following:(35 points)
Dependent variable: Reason for missing the medication (TREAS)
Independent variable: Social support/available support (TSSQAV)
Mediator effect: b) focusing on the present (TCOPEFP)
3) Examine the moderator effects for the above models. In order to examine moderator effect, you have to create the interaction effect as follows:
Sscopefo = tssqav*tcopefo;
Sscopefp = tssqav*tcopefp;
Then, you need to add this interaction effect into the regression model.
For example: model treas = tssqavtcopefoSscopefo;
Moderator effect: a) focusing on other (TCOPEFO)
b) focusing on the present (TCOPEFP)
Moderator Effect y = m x m*x
SAS Output for Assignment #9:
Question #1 (part 1):MEDIATOR EFFECT
Regression model / Step 1 y = x
Number of Observations Read
|
280
|
Number of Observations Used
|
222
|
Number of Observations with Missing Values
|
58
|
Analysis of Variance
|
Source
|
DF
|
Sum of Squares
|
Mean Square
|
F Value
|
Pr > F
|
Model
|
1
|
625.23264
|
625.23264
|
5.88
|
0.0161
|
Error
|
220
|
23374
|
106.24692
|
|
|
Corrected Total
|
221
|
24000
|
|
|
|
Root MSE
|
10.30761
|
R-Square
|
0.0261
|
Dependent Mean
|
9.31081
|
Adj R-Sq
|
0.0216
|
CoeffVar
|
110.70587
|
|
|
Parameter Estimates
|
Variable
|
Label
|
DF
|
Parameter Estimate
|
Standard Error
|
t Value
|
Pr > |t|
|
Standardized Estimate
|
Squared Semi-partial Corr Type II
|
Squared Partial Corr Type II
|
Intercept
|
Intercept
|
1
|
14.35054
|
2.18967
|
6.55
|
<.0001
|
0
|
.
|
.
|
TSSQAV
|
total / ss/ avaiable support
|
1
|
-0.98401
|
0.40564
|
-2.43
|
0.0161
|
-0.16141
|
0.02605
|
0.02605
|
Regression model / Step 2 m=x
Number of Observations Read
|
280
|
Number of Observations Used
|
280
|
Analysis of Variance
|
Source
|
DF
|
Sum of Squares
|
Mean Square
|
F Value
|
Pr > F
|
Model
|
1
|
39.02923
|
39.02923
|
6.52
|
0.0112
|
Error
|
278
|
1663.77077
|
5.98479
|
|
|
Corrected Total
|
279
|
1702.80000
|
|
|
|
Root MSE
|
2.44638
|
R-Square
|
0.0229
|
Dependent Mean
|
9.20000
|
Adj R-Sq
|
0.0194
|
CoeffVar
|
26.59111
|
|
|
Parameter Estimates
|
Variable
|
Label
|
DF
|
Parameter Estimate
|
Standard Error
|
t Value
|
Pr > |t|
|
Standardized Estimate
|
Squared Semi-partial Corr Type II
|
Squared Partial Corr Type II
|
Intercept
|
Intercept
|
1
|
8.09886
|
0.45530
|
17.79
|
<.0001
|
0
|
.
|
.
|
TSSQAV
|
total / ss/ avaiable support
|
1
|
0.21516
|
0.08425
|
2.55
|
0.0112
|
0.15140
|
0.02292
|
0.02292
|
Regression model / Step 3 y = m x
Number of Observations Read
|
280
|
Number of Observations Used
|
222
|
Number of Observations with Missing Values
|
58
|
Analysis of Variance
|
Source
|
DF
|
Sum of Squares
|
Mean Square
|
F Value
|
Pr > F
|
Model
|
2
|
995.35500
|
497.67750
|
4.74
|
0.0097
|
Error
|
219
|
23004
|
105.04200
|
|
|
Corrected Total
|
221
|
24000
|
|
|
|
Root MSE
|
10.24900
|
R-Square
|
0.0415
|
Dependent Mean
|
9.31081
|
Adj R-Sq
|
0.0327
|
CoeffVar
|
110.07634
|
|
|
Parameter Estimates
|
Variable
|
Label
|
DF
|
Parameter Estimate
|
Standard Error
|
t Value
|
Pr > |t|
|
Standardized Estimate
|
Squared Semi-partial Corr Type II
|
Squared Partial Corr Type II
|
Intercept
|
Intercept
|
1
|
18.52594
|
3.11257
|
5.95
|
<.0001
|
0
|
.
|
.
|
TSSQAV
|
total / ss/ avaiable support
|
1
|
-0.82633
|
0.41198
|
-2.01
|
0.0461
|
-0.13554
|
0.01761
|
0.01804
|
TCOPEFO
|
cope score / focusing on others
|
1
|
-0.53596
|
0.28552
|
-1.88
|
0.0618
|
-0.12685
|
0.01542
|
0.01583
|
Regression model / Step 1 y = x
Number of Observations Read
|
280
|
Number of Observations Used
|
222
|
Number of Observations with Missing Values
|
58
|
Analysis of Variance
|
Source
|
DF
|
Sum of Squares
|
Mean Square
|
F Value
|
Pr > F
|
Model
|
1
|
625.23264
|
625.23264
|
5.88
|
0.0161
|
Error
|
220
|
23374
|
106.24692
|
|
|
Corrected Total
|
221
|
24000
|
|
|
|
Root MSE
|
10.30761
|
R-Square
|
0.0261
|
Dependent Mean
|
9.31081
|
Adj R-Sq
|
0.0216
|
CoeffVar
|
110.70587
|
|
|
Parameter Estimates
|
Variable
|
Label
|
DF
|
Parameter Estimate
|
Standard Error
|
t Value
|
Pr > |t|
|
Standardized Estimate
|
Squared Semi-partial Corr Type II
|
Squared Partial Corr Type II
|
Intercept
|
Intercept
|
1
|
14.35054
|
2.18967
|
6.55
|
<.0001
|
0
|
.
|
.
|
TSSQAV
|
total / ss/ avaiable support
|
1
|
-0.98401
|
0.40564
|
-2.43
|
0.0161
|
-0.16141
|
0.02605
|
0.02605
|
Regression model / Step 2 m=x
Number of Observations Read
|
280
|
Number of Observations Used
|
280
|
Analysis of Variance
|
Source
|
DF
|
Sum of Squares
|
Mean Square
|
F Value
|
Pr > F
|
Model
|
1
|
8.88117
|
8.88117
|
6.27
|
0.0128
|
Error
|
278
|
393.51526
|
1.41552
|
|
|
Corrected Total
|
279
|
402.39643
|
|
|
|
Root MSE
|
1.18976
|
R-Square
|
0.0221
|
Dependent Mean
|
4.95357
|
Adj R-Sq
|
0.0186
|
CoeffVar
|
24.01817
|
|
|
Parameter Estimates
|
Variable
|
Label
|
DF
|
Parameter Estimate
|
Standard Error
|
t Value
|
Pr > |t|
|
Standardized Estimate
|
Squared Semi-partial Corr Type II
|
Squared Partial Corr Type II
|
Intercept
|
Intercept
|
1
|
4.42830
|
0.22143
|
20.00
|
<.0001
|
0
|
.
|
.
|
TSSQAV
|
total / ss/ avaiable support
|
1
|
0.10263
|
0.04097
|
2.50
|
0.0128
|
0.14856
|
0.02207
|
0.02207
|
Regression model / Step 3 y = m x
Number of Observations Read
|
280
|
Number of Observations Used
|
222
|
Number of Observations with Missing Values
|
58
|
Analysis of Variance
|
Source
|
DF
|
Sum of Squares
|
Mean Square
|
F Value
|
Pr > F
|
Model
|
2
|
1707.96320
|
853.98160
|
8.39
|
0.0003
|
Error
|
219
|
22292
|
101.78809
|
|
|
Corrected Total
|
221
|
24000
|
|
|
|
Root MSE
|
10.08901
|
R-Square
|
0.0712
|
Dependent Mean
|
9.31081
|
Adj R-Sq
|
0.0627
|
CoeffVar
|
108.35800
|
|
|
Parameter Estimates
|
Variable
|
Label
|
DF
|
Parameter Estimate
|
Standard Error
|
t Value
|
Pr > |t|
|
Standardized Estimate
|
Squared Semi-partial Corr Type II
|
Squared Partial Corr Type II
|
Intercept
|
Intercept
|
1
|
22.10093
|
3.20008
|
6.91
|
<.0001
|
0
|
.
|
.
|
TSSQAV
|
total / ss/ avaiable support
|
1
|
-0.72116
|
0.40513
|
-1.78
|
0.0765
|
-0.11829
|
0.01344
|
0.01426
|
TCOPEFP
|
cope score / focus on present
|
1
|
-1.84593
|
0.56598
|
-3.26
|
0.0013
|
-0.21673
|
0.04511
|
0.04632
|
Regression model / Moderator Effector y = m x m*x
Number of Observations Read
|
280
|
Number of Observations Used
|
222
|
Number of Observations with Missing Values
|
58
|
Analysis of Variance
|
Source
|
DF
|
Sum of Squares
|
Mean Square
|
F Value
|
Pr > F
|
Model
|
3
|
1013.55743
|
337.85248
|
3.20
|
0.0241
|
Error
|
218
|
22986
|
105.44035
|
|
|
Corrected Total
|
221
|
24000
|
|
|
|
Root MSE
|
10.26842
|
R-Square
|
0.0422
|
Dependent Mean
|
9.31081
|
Adj R-Sq
|
0.0291
|
CoeffVar
|
110.28487
|
|
|
Parameter Estimates
|
Variable
|
Label
|
DF
|
Parameter Estimate
|
Standard Error
|
t Value
|
Pr > |t|
|
Intercept
|
Intercept
|
1
|
16.56992
|
5.64690
|
2.93
|
0.0037
|
TSSQAV
|
total / ss/ avaiable support
|
1
|
-0.36840
|
1.17690
|
-0.31
|
0.7546
|
TCOPEFO
|
cope score / focusing on others
|
1
|
-0.29883
|
0.63841
|
-0.47
|
0.6402
|
sscopefo
|
|
1
|
-0.05351
|
0.12880
|
-0.42
|
0.6782
|
Regression model / Moderator Effector y = m x m*x
Number of Observations Read
|
280
|
Number of Observations Used
|
222
|
Number of Observations with Missing Values
|
58
|
Analysis of Variance
|
Source
|
DF
|
Sum of Squares
|
Mean Square
|
F Value
|
Pr > F
|
Model
|
3
|
1772.70659
|
590.90220
|
5.80
|
0.0008
|
Error
|
218
|
22227
|
101.95802
|
|
|
Corrected Total
|
221
|
24000
|
|
|
|
Root MSE
|
10.09743
|
R-Square
|
0.0739
|
Dependent Mean
|
9.31081
|
Adj R-Sq
|
0.0611
|
CoeffVar
|
108.44841
|
|
|
Parameter Estimates
|
Variable
|
Label
|
DF
|
Parameter Estimate
|
Standard Error
|
t Value
|
Pr > |t|
|
Intercept
|
Intercept
|
1
|
27.45449
|
7.44261
|
3.69
|
0.0003
|
TSSQAV
|
total / ss/ avaiable support
|
1
|
-1.80678
|
1.42141
|
-1.27
|
0.2050
|
TCOPEFP
|
cope score / focus on present
|
1
|
-3.06731
|
1.63405
|
-1.88
|
0.0618
|
sscopefp
|
|
1
|
0.24268
|
0.30454
|
0.80
|
0.4264
|