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 2

TITLE '1-way ANOVA,orthogonal planned, Dunn,& Dunn-Sidak procedures, p.171,Kirk (94)';
OPTIONS LS=75 NODATE PAGENO=1;
DATA ortho;
     INPUT id treat score;
     LABEL treat='treatment conditions'
           score='the dependent or response scores';
CARDS;
1   1  4
2   1  6
3   1  3
4   1  3
5   1  1
6   1  3
7   1  2
8   1  2
9   2  4
10  2  5
11  2  4
12  2  3
13  2  2
14  2  3
15  2  4
16  2  3
17  3  5
18  3  6
19  3  5
20  3  4
21  3  3
22  3  4
23  3  3
24  3  4
25  4  3
26  4  5
27  4  6
28  4  5
29  4  6
30  4  7
31  4  8
32  4  10
;
PROC PRINT;
PROC GLM DATA=ortho ORDER=data;
     CLASS treat;
     MODEL score=treat;
     CONTRAST 'psy1'  treat  1 -1  0   0;
     CONTRAST 'psy2'  treat  1  1  -2  0;
     CONTRAST 'psy3'  treat  1  1  1  -3;
     MEANS  treat/BON SIDAK ALPHA=0.05;
RUN;
            
            
    1-way ANOVA,orthogonal planned, Dunn,& Dunn-Sidak procedures, p.171,Kirk (94)  1
            
                        OBS    ID    TREAT    SCORE
            
                          1     1      1         4
                          2     2      1         6
                          3     3      1         3
                          4     4      1         3
                          5     5      1         1
                          6     6      1         3
                          7     7      1         2
                          8     8      1         2
                          9     9      2         4
                         10    10      2         5
                         11    11      2         4
                         12    12      2         3
                         13    13      2         2
                         14    14      2         3
                         15    15      2         4
                         16    16      2         3
                         17    17      3         5
                         18    18      3         6
                         19    19      3         5
                         20    20      3         4
                         21    21      3         3
                         22    22      3         4
                         23    23      3         3
                         24    24      3         4
                         25    25      4         3
                         26    26      4         5
                         27    27      4         6
                         28    28      4         5
                         29    29      4         6
                         30    30      4         7
                         31    31      4         8
                         32    32      4        10
            
            
    1-way ANOVA,orthogonal planned, Dunn,& Dunn-Sidak procedures, p.171,Kirk (94)  2
            
                      General Linear Models Procedure
                          Class Level Information
            
                        Class    Levels    Values
            
                        TREAT         4    1 2 3 4
            
            
                  Number of observations in data set = 32
            
            
            
   1-way ANOVA,orthogonal planned, Dunn,& Dunn-Sidak procedures, p.171,Kirk (94)  3
            
                      General Linear Models Procedure
            
Dependent Variable: SCORE   the dependent or response scores
                                   Sum of          Mean
Source                  DF        Squares        Square  F Value    Pr > F
            
Model                    3     49.0000000    16.3333333     7.50    0.0008
            
Error                   28     61.0000000     2.1785714
            
Corrected Total         31    110.0000000
            
                  R-Square           C.V.      Root MSE         SCORE Mean
            
                  0.445455       34.72938       1.47600            4.25000
            
            
Source                  DF      Type I SS   Mean Square  F Value    Pr > F
            
TREAT                    3     49.0000000    16.3333333     7.50    0.0008
            
Source                  DF    Type III SS   Mean Square  F Value    Pr > F
            
TREAT                    3     49.0000000    16.3333333     7.50    0.0008
            
Contrast                DF    Contrast SS   Mean Square  F Value    Pr > F
            
psy1                     1      1.0000000     1.0000000     0.46    0.5036
psy2                     1      5.3333333     5.3333333     2.45    0.1289
psy3                     1     42.6666667    42.6666667    19.58    0.0001
            
            
            
    1-way ANOVA,orthogonal planned, Dunn,& Dunn-Sidak procedures, p.171,Kirk (94)  4
            
                      General Linear Models Procedure
            
                     Sidak 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= 28  MSE= 2.178571
                         Critical Value of T= 2.83
                  Minimum Significant Difference= 2.0886
            
        Means with the same letter are not significantly different.
            
              Sidak Grouping              Mean      N  TREAT
            
                           A            6.2500      8  4
                           A
                   B       A            4.2500      8  3
                   B
                   B                    3.5000      8  2
                   B
                   B                    3.0000      8  1
            
            
            
   1-way ANOVA,orthogonal planned, Dunn,& Dunn-Sidak procedures, p.171,Kirk (94)  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= 28  MSE= 2.178571
                         Critical Value of T= 2.84
                  Minimum Significant Difference= 2.0951
            
        Means with the same letter are not significantly different.
            
               Bon Grouping              Mean      N  TREAT
            
                          A            6.2500      8  4
                          A
                  B       A            4.2500      8  3
                  B
                  B                    3.5000      8  2
                  B
                  B                    3.0000      8  1
            



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