Practice

Computer Programs

SAS headstart
SAS procedures
Program 1
Program 2
Program 3
Program 4
Program 5
Program 6
Program 7
Program 8
Program 9
Program 10
Program 11
Program 12
Program 13
Program 14

Topical Bibliographies (Readings)

Datasets and Stories

Software Help  


Search for 

Program 12

TITLE 'Table 12.10-1, p.555 Kirk, SPF-2.22 -- Univariate, 2 versions';
OPTIONS LS=80 NODATE PAGENO=1;
DATA spf2_22;
        INPUT  a b c s  score;
CARDS;
1  1  1  1  3
1  1  1  2  6
1  1  1  3  3
1  1  1  4  3
2  1  1  5  1
2  1  1  6  2
2  1  1  7  2
2  1  1  8  2
1  1  2  1  4
1  1  2  2  5
1  1  2  3  4
1  1  2  4  3
2  1  2  5  2
2  1  2  6  3
2  1  2  7  4
2  1  2  8  3
1  2  1  1  7
1  2  1  2  8
1  2  1  3  7
1  2  1  4  6
2  2  1  5  5
2  2  1  6  6
2  2  1  7  5
2  2  1  8  6
1  2  2  1  7
1  2  2  2  8
1  2  2  3  9
1  2  2  4  8
2  2  2  5  10
2  2  2  6  10
2  2  2  7  9
2  2  2  8  11
;
PROC PRINT;
            
*This analysis lists all the terms in the model statement*;
            
PROC GLM  DATA=spf2_22;
        CLASS a c b s;
        MODEL  score=a  s(a)  b a*b b*s(a) c a*c c*s(a) b*c  a*b*c  b*c*s(a);
            
        TEST  H=a         E=s(a);
        TEST  H=b  a*b    E=b*s(a);
        TEST  H=c  a*c    E=c*s(a);
        TEST  H=b*c a*b*c E=b*c*s(a);
            
        MEANS  a        /E=s(a)    BON;
        MEANS  b  a*b   /E=b*s(a)  BON;
        MEANS  c  a*c   /E=c*s(a)  BON;
        MEANS  b*c a*b*c/E=b*c*s(a) BON;
            
*This analysis leaves out the last error term from the model statement*;
 
PROC GLM  DATA=spf2_22;
        CLASS a c b s;
        MODEL  score=a  s(a)  b a*b b*s(a) c a*c c*s(a) b*c  a*b*c;
            
        TEST  H=a         E=s(a);
        TEST  H=b  a*b    E=b*s(a);
        TEST  H=c  a*c    E=c*s(a);
            
        MEANS  a        /E=s(a)    BON;
        MEANS  b  a*b   /E=b*s(a)  BON;
        MEANS  c  a*c   /E=c*s(a)  BON;
        MEANS  b*c a*b*c/          BON;
            
RUN;
            
         Table 12.10-1, p.555 Kirk, SPF-2.22 -- Univariate, 2 versions         1
            
                        OBS    A    B    C    S    SCORE
            
                          1    1    1    1    1       3
                          2    1    1    1    2       6
                          3    1    1    1    3       3
                          4    1    1    1    4       3
                          5    2    1    1    5       1
                          6    2    1    1    6       2
                          7    2    1    1    7       2
                          8    2    1    1    8       2
                          9    1    1    2    1       4
                         10    1    1    2    2       5
                         11    1    1    2    3       4
                         12    1    1    2    4       3
                         13    2    1    2    5       2
                         14    2    1    2    6       3
                         15    2    1    2    7       4
                         16    2    1    2    8       3
                         17    1    2    1    1       7
                         18    1    2    1    2       8
                         19    1    2    1    3       7
                         20    1    2    1    4       6
                         21    2    2    1    5       5
                         22    2    2    1    6       6
                         23    2    2    1    7       5
                         24    2    2    1    8       6
                         25    1    2    2    1       7
                         26    1    2    2    2       8
                         27    1    2    2    3       9
                         28    1    2    2    4       8
                         29    2    2    2    5      10
                         30    2    2    2    6      10
                         31    2    2    2    7       9
                         32    2    2    2    8      11
          Table 12.10-1, p.555 Kirk, SPF-2.22 -- Univariate, 2 versions         2
            
                        General Linear Models Procedure
                            Class Level Information
            
                       Class    Levels    Values
            
                       A             2    1 2
            
                       C             2    1 2
            
                       B             2    1 2
            
                       S             8    1 2 3 4 5 6 7 8
                    Number of observations in data set = 32
            
         Table 12.10-1, p.555 Kirk, SPF-2.22 -- Univariate, 2 versions         3
            
Dependent Variable: SCORE
                                     Sum of            Mean
Source                  DF          Squares          Square   F Value     Pr > F
            
Model                   31     235.50000000      7.59677419       .        .
            
Error                    0        .               .
            
Corrected Total         31     235.50000000
            
                  R-Square             C.V.        Root MSE           SCORE Mean
                  1.000000                0               0            5.3750000
            
Source                  DF        Type I SS     Mean Square   F Value     Pr > F
A                        1       3.12500000      3.12500000       .        .
S(A)                     6       9.37500000      1.56250000       .        .
B                        1     162.00000000    162.00000000       .        .
A*B                      1       6.12500000      6.12500000       .        .
B*S(A)                   6       4.87500000      0.81250000       .        .
C                        1      24.50000000     24.50000000       .        .
A*C                      1      10.12500000     10.12500000       .        .
C*S(A)                   6       2.37500000      0.39583333       .        .
C*B                      1       8.00000000      8.00000000       .        .
A*C*B                    1       3.12500000      3.12500000       .        .
C*B*S(A)                 6       1.87500000      0.31250000       .        .
            
Source                  DF      Type III SS     Mean Square   F Value     Pr > F
A                        1       3.12500000      3.12500000       .        .
S(A)                     6       9.37500000      1.56250000       .        .
B                        1     162.00000000    162.00000000       .        .
A*B                      1       6.12500000      6.12500000       .        .
B*S(A)                   6       4.87500000      0.81250000       .        .
C                        1      24.50000000     24.50000000       .        .
A*C                      1      10.12500000     10.12500000       .        .
C*S(A)                   6       2.37500000      0.39583333       .        .
C*B                      1       8.00000000      8.00000000       .        .
A*C*B                    1       3.12500000      3.12500000       .        .
C*B*S(A)                 6       1.87500000      0.31250000       .        .
            
Tests of Hypotheses using the Type III MS for S(A) as an error term
            
Source                  DF      Type III SS     Mean Square   F Value     Pr > F
A                        1       3.12500000      3.12500000      2.00     0.2070
         Table 12.10-1, p.555 Kirk, SPF-2.22 -- Univariate, 2 versions         4
            
Dependent Variable: SCORE
            
Tests of Hypotheses using the Type III MS for B*S(A) as an error term
            
Source                  DF      Type III SS     Mean Square   F Value     Pr > F
            
B                        1     162.00000000    162.00000000    199.38     0.0001
A*B                      1       6.12500000      6.12500000      7.54     0.0335
            
Tests of Hypotheses using the Type III MS for C*S(A) as an error term
            
Source                  DF      Type III SS     Mean Square   F Value     Pr > F
            
C                        1      24.50000000     24.50000000     61.89     0.0002
A*C                      1      10.12500000     10.12500000     25.58     0.0023
            
Tests of Hypotheses using the Type III MS for C*B*S(A) as an error term
            
Source                  DF      Type III SS     Mean Square   F Value     Pr > F
            
C*B                      1       8.00000000      8.00000000     25.60     0.0023
A*C*B                    1       3.12500000      3.12500000     10.00     0.0195
            
         Table 12.10-1, p.555 Kirk, SPF-2.22 -- Univariate, 2 versions         5
            
                        General Linear Models Procedure
            
                 Bonferroni (Dunn) T tests for variable: SCORE
            
          NOTE: This test controls the type I experimentwise error rate, but
                generally has a higher type II error rate than REGWQ.
            
                        Alpha= 0.05  df= 6  MSE= 1.5625
                           Critical Value of T= 2.45
                     Minimum Significant Difference= 1.0814
            
          Means with the same letter are not significantly different.
            
                    Bon Grouping              Mean      N  A
            
                               A            5.6875     16  1
                               A
                               A            5.0625     16  2
            
         Table 12.10-1, p.555 Kirk, SPF-2.22 -- Univariate, 2 versions         6
                  Bonferroni (Dunn) T tests for variable: SCORE
          NOTE: This test controls the type I experimentwise error rate, but
                generally has a higher type II error rate than REGWQ.
            
                        Alpha= 0.05  df= 6  MSE= 0.8125
                           Critical Value of T= 2.45
                     Minimum Significant Difference= 0.7798
            
          Means with the same letter are not significantly different.
            
                    Bon Grouping              Mean      N  B
                               A            7.6250     16  2
            
                               B            3.1250     16  1
            
            Level of   Level of       ------------SCORE------------
            A          B          N       Mean              SD
            
            1          1          8     3.87500000       1.12599163
            1          2          8     7.50000000       0.92582010
            2          1          8     2.37500000       0.91612538
            2          2          8     7.75000000       2.49284691
            
         Table 12.10-1, p.555 Kirk, SPF-2.22 -- Univariate, 2 versions         7
            
                 Bonferroni (Dunn) T tests for variable: SCORE
            
          NOTE: This test controls the type I experimentwise error rate, but
                generally has a higher type II error rate than REGWQ.
            
                       Alpha= 0.05  df= 6  MSE= 0.395833
                           Critical Value of T= 2.45
                     Minimum Significant Difference= 0.5443
            
          Means with the same letter are not significantly different.
            
                    Bon Grouping              Mean      N  C
            
                               A            6.2500     16  2
            
                               B            4.5000     16  1
            
            
            Level of   Level of       ------------SCORE------------
            A          C          N       Mean              SD
            
            1          1          8     5.37500000       2.06587927
            1          2          8     6.00000000       2.26778684
            2          1          8     3.62500000       2.06587927
            2          2          8     6.50000000       3.81725406
            
         Table 12.10-1, p.555 Kirk, SPF-2.22 -- Univariate, 2 versions         8
            
            Level of   Level of       ------------SCORE------------
            C          B          N       Mean              SD
            
            1          1          8     2.75000000       1.48804762
            1          2          8     6.25000000       1.03509834
            2          1          8     3.50000000       0.92582010
            2          2          8     9.00000000       1.30930734
            
       Level of   Level of   Level of       ------------SCORE------------
       A          C          B          N       Mean              SD
            
       1          1          1          4     3.75000000       1.50000000
       1          1          2          4     7.00000000       0.81649658
       1          2          1          4     4.00000000       0.81649658
       1          2          2          4     8.00000000       0.81649658
       2          1          1          4     1.75000000       0.50000000
       2          1          2          4     5.50000000       0.57735027
       2          2          1          4     3.00000000       0.81649658
       2          2          2          4    10.00000000       0.81649658
            
            
          Table 12.10-1, p.555 Kirk, SPF-2.22 -- Univariate, 2 versions         9
            
                        General Linear Models Procedure
                            Class Level Information
            
                       Class    Levels    Values
            
                       A             2    1 2
            
                       C             2    1 2
            
                       B             2    1 2
            
                       S             8    1 2 3 4 5 6 7 8
                    Number of observations in data set = 32
            
         Table 12.10-1, p.555 Kirk, SPF-2.22 -- Univariate, 2 versions        10
            
Dependent Variable: SCORE
                                     Sum of            Mean
Source                  DF          Squares          Square   F Value     Pr > F
            
Model                   25     233.62500000      9.34500000     29.90     0.0002
            
Error                    6       1.87500000      0.31250000
            
Corrected Total         31     235.50000000
            
                  R-Square             C.V.        Root MSE           SCORE Mean
                  0.992038         10.40032       0.5590170            5.3750000
            
Source                  DF        Type I SS     Mean Square   F Value     Pr > F
A                        1       3.12500000      3.12500000     10.00     0.0195
S(A)                     6       9.37500000      1.56250000      5.00     0.0355
B                        1     162.00000000    162.00000000    518.40     0.0001
A*B                      1       6.12500000      6.12500000     19.60     0.0044
B*S(A)                   6       4.87500000      0.81250000      2.60     0.1350
C                        1      24.50000000     24.50000000     78.40     0.0001
A*C                      1      10.12500000     10.12500000     32.40     0.0013
C*S(A)                   6       2.37500000      0.39583333      1.27     0.3907
C*B                      1       8.00000000      8.00000000     25.60     0.0023
A*C*B                    1       3.12500000      3.12500000     10.00     0.0195
            
Source                  DF      Type III SS     Mean Square   F Value     Pr > F
A                        1       3.12500000      3.12500000     10.00     0.0195
S(A)                     6       9.37500000      1.56250000      5.00     0.0355
B                        1     162.00000000    162.00000000    518.40     0.0001
A*B                      1       6.12500000      6.12500000     19.60     0.0044
B*S(A)                   6       4.87500000      0.81250000      2.60     0.1350
C                        1      24.50000000     24.50000000     78.40     0.0001
A*C                      1      10.12500000     10.12500000     32.40     0.0013
C*S(A)                   6       2.37500000      0.39583333      1.27     0.3907
C*B                      1       8.00000000      8.00000000     25.60     0.0023
A*C*B                    1       3.12500000      3.12500000     10.00     0.0195
            
Tests of Hypotheses using the Type III MS for S(A) as an error term
            
Source                  DF      Type III SS     Mean Square   F Value     Pr > F
            
A                        1       3.12500000      3.12500000      2.00     0.2070
         Table 12.10-1, p.555 Kirk, SPF-2.22 -- Univariate, 2 versions        11
            
                        General Linear Models Procedure
            
Dependent Variable: SCORE
            
Tests of Hypotheses using the Type III MS for B*S(A) as an error term
            
Source                  DF      Type III SS     Mean Square   F Value     Pr > F
            
B                        1     162.00000000    162.00000000    199.38     0.0001
A*B                      1       6.12500000      6.12500000      7.54     0.0335
            
Tests of Hypotheses using the Type III MS for C*S(A) as an error term
            
Source                  DF      Type III SS     Mean Square   F Value     Pr > F
            
C                        1      24.50000000     24.50000000     61.89     0.0002
A*C                      1      10.12500000     10.12500000     25.58     0.0023
            
         Table 12.10-1, p.555 Kirk, SPF-2.22 -- Univariate, 2 versions        12
            
                 Bonferroni (Dunn) T tests for variable: SCORE
            
          NOTE: This test controls the type I experimentwise error rate, but
                generally has a higher type II error rate than REGWQ.
            
                        Alpha= 0.05  df= 6  MSE= 1.5625
                           Critical Value of T= 2.45
                     Minimum Significant Difference= 1.0814
            
          Means with the same letter are not significantly different.
            
                    Bon Grouping              Mean      N  A
            
                               A            5.6875     16  1
                               A
                               A            5.0625     16  2
            
            
         Table 12.10-1, p.555 Kirk, SPF-2.22 -- Univariate, 2 versions        13
            
                 Bonferroni (Dunn) T tests for variable: SCORE
            
          NOTE: This test controls the type I experimentwise error rate, but
                generally has a higher type II error rate than REGWQ.
            
                        Alpha= 0.05  df= 6  MSE= 0.8125
                           Critical Value of T= 2.45
                     Minimum Significant Difference= 0.7798
            
          Means with the same letter are not significantly different.
            
                    Bon Grouping              Mean      N  B
            
                               A            7.6250     16  2
            
                               B            3.1250     16  1
            
            
             Level of   Level of       ------------SCORE------------
            A          B          N       Mean              SD
            
            1          1          8     3.87500000       1.12599163
            1          2          8     7.50000000       0.92582010
            2          1          8     2.37500000       0.91612538
            2          2          8     7.75000000       2.49284691
            
         Table 12.10-1, p.555 Kirk, SPF-2.22 -- Univariate, 2 versions        14
            
                 Bonferroni (Dunn) T tests for variable: SCORE
            
          NOTE: This test controls the type I experimentwise error rate, but
                generally has a higher type II error rate than REGWQ.
            
                       Alpha= 0.05  df= 6  MSE= 0.395833
                           Critical Value of T= 2.45
                     Minimum Significant Difference= 0.5443
            
          Means with the same letter are not significantly different.
            
                    Bon Grouping              Mean      N  C
            
                               A            6.2500     16  2
            
                               B            4.5000     16  1
            
            Level of   Level of       ------------SCORE------------
            A          C          N       Mean              SD
            
            1          1          8     5.37500000       2.06587927
            1          2          8     6.00000000       2.26778684
            2          1          8     3.62500000       2.06587927
            2          2          8     6.50000000       3.81725406
            
         Table 12.10-1, p.555 Kirk, SPF-2.22 -- Univariate, 2 versions        15
            
            Level of   Level of       ------------SCORE------------
            C          B          N       Mean              SD
            
            1          1          8     2.75000000       1.48804762
            1          2          8     6.25000000       1.03509834
            2          1          8     3.50000000       0.92582010
            2          2          8     9.00000000       1.30930734
            
       Level of   Level of   Level of       ------------SCORE------------
       A          C          B          N       Mean              SD
            
       1          1          1          4     3.75000000       1.50000000
       1          1          2          4     7.00000000       0.81649658
       1          2          1          4     4.00000000       0.81649658
       1          2          2          4     8.00000000       0.81649658
       2          1          1          4     1.75000000       0.50000000
       2          1          2          4     5.50000000       0.57735027
       2          2          1          4     3.00000000       0.81649658
       2          2          2          4    10.00000000       0.81649658
            



Comments: peng@indiana.edu
Dr. Peng's Home Page: Dr. Chao-Ying Joanne Peng
Copyright 1999, The Trustees of Indiana University