You are on page 1of 14

The SAS System 08:25 Wednesday, June 23, 2021 20

Obs y x1 x2
x3

1 94.36 22 30
14.18
2 41.63 18 31
8.03
3 49.34 18 32
9.39
4 52.90 18 30
9.79
5 139.72 20 44
19.14
6 71.47 18 44
11.34
7 79.92 16 44
13.40
8 80.99 18 45
12.61
9 174.82 20 54
22.44
10 86.22 16 55
13.48
11 104.23 16 56
16.04
12 110.91 18 54
15.90
13 196.91 20 65
24.28
14 97.71 16 66
14.48
15 121.17 16 67
17.68
16 126.42 18 65
17.35
17 228.39 22 77
26.02
18 116.97 18 77
15.65
19 135.87 16 78
19.09
20 131.76 16 76
18.45
The SAS System
08:25 Wednesday, June 23, 2021 21

The REG Procedure


Model: MODEL1
Dependent Variable: y

Analysis of Variance

Sum of
Mean
Source DF Squares
Square F Value Pr > F

Model 3 43765
14588 1018.58 <.0001
Error 16 229.15320
14.32207
Corrected Total 19 43994

Root MSE 3.78445 R-


Square 0.9948
Dependent Mean 112.08550 Adj R-
Sq 0.9938
Coeff Var 3.37640

Parameter Estimates

Parameter Standard
Variable DF Estimate Error
t Value Pr > |t|

Intercept 1 -116.20928 12.35347


-9.41 <.0001
x1 1 4.06942 0.68881
5.91 <.0001
x2 1 0.40936 0.10416
3.93 0.0012
x3 1 8.32875 0.37955
21.94 <.0001
The SAS System
08:25 Wednesday, June 23, 2021 22

The REG Procedure


Model: MODEL1
Dependent Variable: y

C(p) Selection Method

Number in
Model C(p) R-Square AIC BIC
MSE SBC Variables in Model

3 4.0000 0.9948 56.7732 60.6482


14.32207 60.75610 x1 x2 x3
2 17.4448 0.9898 68.2861 67.8373
26.49146 71.27327 x1 x3
1 35.0763 0.9834 75.9878 74.8137
40.63988 77.97925 x3
2 36.9029 0.9834 77.9198 75.5401
42.88441 80.90699 x2 x3
2 483.5253 0.8380 123.5143 117.9131
419.15261 126.50152 x1 x2
1 1618.782 0.4678 145.3067 141.4043
1300.74805 147.29815 x2
1 2434.895 0.2021 153.4056 149.4707
1950.10546 155.39703 x1
The SAS System
08:25 Wednesday, June 23, 2021 23

The REG Procedure


Model: MODEL2
Dependent Variable: y

Stepwise Selection: Step 1

Variable x3 Entered: R-Square = 0.9834 and


C(p) = 35.0763

Analysis of Variance

Sum of
Mean
Source DF Squares
Square F Value Pr > F

Model 1 43262
43262 1064.53 <.0001
Error 18 731.51792
40.63988
Corrected Total 19 43994

Parameter Standard
Variable Estimate Error Type II
SS F Value Pr > F

Intercept -46.25636 5.05809


3398.77013 83.63 <.0001
x3 9.93549 0.30452
43262 1064.53 <.0001

Bounds on condition number:


1, 1
-----------------------------------------------------------------------------------
---------------------------------------------------------

Stepwise Selection: Step 2

Variable x1 Entered: R-Square = 0.9898 and


C(p) = 17.4448
The SAS System
08:25 Wednesday, June 23, 2021 24

The REG Procedure


Model: MODEL2
Dependent Variable: y

Stepwise Selection: Step 2

Analysis of Variance

Sum of
Mean
Source DF Squares
Square F Value Pr > F

Model 2 43544
21772 821.84 <.0001
Error 17 450.35488
26.49146
Corrected Total 19 43994

Parameter Standard
Variable Estimate Error Type II
SS F Value Pr > F

Intercept -79.46590 10.98140


1387.24131 52.37 <.0001
x1 2.13519 0.65541
281.16303 10.61 0.0046
x3 9.60770 0.26565
34652 1308.03 <.0001

Bounds on condition number:


1.1675, 4.6699
-----------------------------------------------------------------------------------
---------------------------------------------------------

Stepwise Selection: Step 3

Variable x2 Entered: R-Square = 0.9948


and C(p) = 4.0000
The SAS System
08:25 Wednesday, June 23, 2021 25

The REG Procedure


Model: MODEL2
Dependent Variable: y

Stepwise Selection: Step 3

Analysis of Variance

Sum of
Mean
Source DF Squares
Square F Value Pr > F

Model 3 43765
14588 1018.58 <.0001
Error 16 229.15320
14.32207
Corrected Total 19 43994

Parameter Standard
Variable Estimate Error Type II
SS F Value Pr > F

Intercept -116.20928 12.35347


1267.38888 88.49 <.0001
x1 4.06942 0.68881
499.88182 34.90 <.0001
x2 0.40936 0.10416
221.20168 15.44 0.0012
x3 8.32875 0.37955
6896.44121 481.53 <.0001

Bounds on condition number:


4.4083, 32.242
-----------------------------------------------------------------------------------
---------------------------------------------------------

All variables left in the model are significant


at the 0.0500 level.

All variables have been entered into


the model.
The SAS System
08:25 Wednesday, June 23, 2021 26

The REG Procedure


Model: MODEL2
Dependent Variable: y

Summary of Stepwise
Selection

Variable Variable Number Partial


Model
Step Entered Removed Vars In R-Square R-
Square C(p) F Value Pr > F

1 x3 1 0.9834
0.9834 35.0763 1064.53 <.0001
2 x1 2 0.0064
0.9898 17.4448 10.61 0.0046
3 x2 3 0.0050
0.9948 4.0000 15.44 0.0012
The SAS System
08:25 Wednesday, June 23, 2021 27

The REG Procedure


Model: MODEL3
Dependent Variable: y

Analysis of Variance

Sum of
Mean
Source DF Squares
Square F Value Pr > F

Model 3 43765
14588 1018.58 <.0001
Error 16 229.15320
14.32207
Corrected Total 19 43994

Root MSE 3.78445 R-


Square 0.9948
Dependent Mean 112.08550 Adj R-
Sq 0.9938
Coeff Var 3.37640

Parameter Estimates

Parameter Standard
Variable DF Estimate Error
t Value Pr > |t|

Intercept 1 -116.20928 12.35347


-9.41 <.0001
x1 1 4.06942 0.68881
5.91 <.0001
x2 1 0.40936 0.10416
3.93 0.0012
x3 1 8.32875 0.37955
21.94 <.0001
The SAS System
08:25 Wednesday, June 23, 2021 28

The REG Procedure


Model: MODEL3
Dependent Variable: y

Output Statistics

Dependent Predicted Std Error Std Error Student


Cook's Hat Diag Cov
Obs Variable Value Mean Predict Residual Residual Residual -2-1 0
1 2 D RStudent H Ratio DFFITS

1 94.3600 103.7003 2.2474 -9.3403 3.045 -3.068 |******|


| 1.282 -4.6280 0.3527 0.0576 -3.4159
2 41.6300 36.6102 1.7655 5.0198 3.347 1.500 | |
** | 0.156 1.5663 0.2176 0.9028 0.8261
3 49.3400 48.3466 1.5482 0.9934 3.453 0.288 | |
| 0.004 0.2792 0.1674 1.5228 0.1252
4 52.9000 50.8594 1.5690 2.0406 3.444 0.593 | |
* | 0.018 0.5801 0.1719 1.4305 0.2643
5 139.7200 142.6031 1.7047 -2.8831 3.379 -0.853 | *|
| 0.046 -0.8457 0.2029 1.3480 -0.4267
6 71.4700 69.5000 1.2978 1.9700 3.555 0.554 | |
* | 0.010 0.5418 0.1176 1.3576 0.1978
7 79.9200 78.5184 1.7599 1.4016 3.350 0.418 | |
| 0.012 0.4073 0.2163 1.5807 0.2140
8 80.9900 80.4868 1.0710 0.5032 3.630 0.139 | |
| 0.000 0.1343 0.0801 1.4005 0.0396
9 174.8200 174.1815 1.9321 0.6385 3.254 0.196 | |
| 0.003 0.1902 0.2606 1.7341 0.1129
10 86.2200 83.6876 1.2420 2.5324 3.575 0.708 | |
* | 0.015 0.6969 0.1077 1.2772 0.2421
11 104.2300 105.4186 1.5500 -1.1886 3.452 -0.344 | |
| 0.006 -0.3346 0.1677 1.5099 -0.1502
12 110.9100 111.5727 0.8472 -0.6627 3.688 -0.180 | |
| 0.000 -0.1741 0.0501 1.3519 -0.0400
13 196.9100 194.0094 1.8753 2.9006 3.287 0.882 | |
* | 0.063 0.8760 0.2455 1.4054 0.4997
14 97.7100 96.5193 1.4111 1.1907 3.512 0.339 | |
| 0.005 0.3295 0.1390 1.4608 0.1324
15 121.1700 123.5806 1.4394 -2.4106 3.500 -0.689 | *|
| 0.020 -0.6770 0.1447 1.3418 -0.2784
16 126.4200 128.1523 1.0927 -1.7323 3.623 -0.478 | |
| 0.005 -0.4663 0.0834 1.3333 -0.1406
17 228.3900 221.5525 2.5491 6.8375 2.797 2.444 | |
**** | 1.241 2.9901 0.4537 0.3652 2.7249
18 116.9700 118.9057 2.5804 -1.9357 2.768 -0.699 | *|
| 0.106 -0.6876 0.4649 2.1369 -0.6409
19 135.8700 139.8271 1.6326 -3.9571 3.414 -1.159 | **|
| 0.077 -1.1725 0.1861 1.1200 -0.5607
20 131.7600 133.6780 1.5606 -1.9180 3.448 -0.556 | *|
| 0.016 -0.5439 0.1701 1.4426 -0.2462

Output Statistics
-------------------DFBETAS-------------------
Obs Intercept x1
x2 x3

1 1.6836 -2.1755
0.0175 0.8245
2 -0.0274 0.2334
0.0587 -0.4222
3 0.0163 0.0151
-0.0172 -0.0384
4 0.0773 -0.0128
-0.0929 -0.0244
5 -0.0885 0.0787
0.2883 -0.2807
The SAS System
08:25 Wednesday, June 23, 2021 29

The REG Procedure


Model: MODEL3
Dependent Variable: y

Output Statistics

-------------------DFBETAS-------------------
Obs Intercept x1
x2 x3

6 -0.0395 0.0801
0.0613 -0.1230
7 0.1925 -0.1748
-0.1523 0.1224
8 -0.0008 0.0088
0.0034 -0.0153
9 0.0226 -0.0297
-0.0692 0.0866
10 0.1436 -0.1251
-0.0259 0.0107
11 -0.1255 0.1255
0.0835 -0.0908
12 -0.0042 0.0013
0.0019 -0.0014
13 -0.0058 -0.0567
-0.1698 0.3190
14 0.0111 -0.0101
0.0645 -0.0514
15 -0.1618 0.1824
0.0483 -0.1116
16 0.0538 -0.0489
-0.0816 0.0517
17 -1.9929 1.6712
1.1021 -0.2631
18 0.4439 -0.4362
-0.6053 0.5262
19 -0.1100 0.1803
-0.1502 -0.0446
20 -0.0503 0.0776
-0.0690 -0.0103

Sum of Residuals
0
Sum of Squared Residuals
229.15320
Predicted Residual SS (PRESS)
516.66489
The SAS System
08:25 Wednesday, June 23, 2021 30

The CORR Procedure

4 Variables: y x1 x2
x3

Simple Statistics

Variable N Mean Std Dev


Sum Minimum Maximum

y 20 112.08550 48.11931
2242 41.63000 228.39000
x1 20 18.00000 1.94666
360.00000 16.00000 22.00000
x2 20 54.50000 16.57360
1090 30.00000 78.00000
x3 20 15.93700 4.80274
318.74000 8.03000 26.02000

Pearson Correlation Coefficients,


N = 20
Prob > |r| under H0: Rho=0

y x1
x2 x3

y 1.00000 0.44958
0.68396 0.99165
0.0467
0.0009 <.0001

x1 0.44958 1.00000
-0.21207 0.37875
0.0467
0.3694 0.0996

x2 0.68396 -0.21207
1.00000 0.69516
0.0009 0.3694
0.0007

x3 0.99165 0.37875
0.69516 1.00000
<.0001 0.0996
0.0007
The SAS System
08:25 Wednesday, June 23, 2021 31

The CORR Procedure

4 Variables: y x1 x2
x3

Simple Statistics

Variable N Mean Std Dev


Median Minimum Maximum

y 20 112.08550 48.11931
107.57000 41.63000 228.39000
x1 20 18.00000 1.94666
18.00000 16.00000 22.00000
x2 20 54.50000 16.57360
54.50000 30.00000 78.00000
x3 20 15.93700 4.80274
15.77500 8.03000 26.02000

Spearman Correlation Coefficients,


N = 20
Prob > |r| under H0: Rho=0

y x1
x2 x3

y 1.00000 0.26844
0.68552 0.99098
0.2525
0.0008 <.0001

x1 0.26844 1.00000
-0.31639 0.22065
0.2525
0.1741 0.3499

x2 0.68552 -0.31639
1.00000 0.66667
0.0008 0.1741
0.0013

x3 0.99098 0.22065
0.66667 1.00000
<.0001 0.3499
0.0013
The SAS System
08:25 Wednesday, June 23, 2021 32

The CORR Procedure

3 With Variables: x1 x2
x3
1 Variables: y

Simple Statistics

Variable N Mean Std Dev


Median Minimum Maximum

x1 20 18.00000 1.94666
18.00000 16.00000 22.00000
x2 20 54.50000 16.57360
54.50000 30.00000 78.00000
x3 20 15.93700 4.80274
15.77500 8.03000 26.02000
y 20 112.08550 48.11931
107.57000 41.63000 228.39000

Spearman Correlation Coefficients,


N = 20
Prob > |r| under H0: Rho=0

x1 0.26844
0.2525

x2 0.68552
0.0008

x3 0.99098
<.0001

You might also like