|
|

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
5

OPTIONS LS=75 NODATE PAGENO=1;
TITLE 'Interaction Contrasts in a CRF design, p. 369 of Kirk, 1994';
DATA p369;
INPUT a b score;
CARDS;
1 1 24
1 1 33
1 1 37
1 1 29
1 1 42
1 2 44
1 2 36
1 2 25
1 2 27
1 2 43
1 3 38
1 3 29
1 3 28
1 3 47
1 3 48
2 1 30
2 1 21
2 1 39
2 1 26
2 1 34
2 2 35
2 2 40
2 2 27
2 2 31
2 2 22
2 3 26
2 3 27
2 3 36
2 3 46
2 3 45
3 1 21
3 1 18
3 1 10
3 1 31
3 1 20
3 2 41
3 2 39
3 2 50
3 2 36
3 2 34
3 3 42
3 3 52
3 3 53
3 3 49
3 3 64
;
PROC PRINT;
PROC GLM;
CLASS a b;
MODEL score=a b a*b;
CONTRAST 'psy1-on a' a 1 -1 0;
CONTRAST 'psy2-on a' a 1 1 -2;
CONTRAST 'psy3-on b' b 1 1 -2;
CONTRAST 'psy4-on b' b 1 -1 0;
CONTRAST 'psy5-on ab' a*b 1 1 -2 -1 -1 2 0 0 0;
CONTRAST 'psy6-on ab' a*b 1 -1 0 -1 1 0 0 0 0;
CONTRAST 'psy7-on ab' a*b 1 1 -2 1 1 -2 -2 -2 4;
CONTRAST 'psy8-on ab' a*b 1 -1 0 1 -1 0 -2 2 0;
RUN;
1 Interaction Contrasts in a CRF design, p. 369 of Kirk, 1994 1
OBS A B SCORE
1 1 1 24
2 1 1 33
3 1 1 37
4 1 1 29
5 1 1 42
6 1 2 44
7 1 2 36
8 1 2 25
9 1 2 27
10 1 2 43
11 1 3 38
12 1 3 29
13 1 3 28
14 1 3 47
15 1 3 48
16 2 1 30
17 2 1 21
18 2 1 39
19 2 1 26
20 2 1 34
21 2 2 35
22 2 2 40
23 2 2 27
24 2 2 31
25 2 2 22
26 2 3 26
27 2 3 27
28 2 3 36
29 2 3 46
30 2 3 45
31 3 1 21
32 3 1 18
33 3 1 10
34 3 1 31
35 3 1 20
36 3 2 41
37 3 2 39
38 3 2 50
39 3 2 36
40 3 2 34
41 3 3 42
42 3 3 52
43 3 3 53
44 3 3 49
45 3 3 64
1 Interaction Contrasts in a CRF design, p. 369 of Kirk, 1994 2
General Linear Models Procedure
Class Level Information
Class Levels Values
A 3 1 2 3
B 3 1 2 3
Number of observations in data set = 45
1 Interaction Contrasts in a CRF design, p. 369 of Kirk, 1994 3
General Linear Models Procedure
Dependent Variable: SCORE
Sum of Mean
Source DF Squares Square F Value Pr > F
Model 8 2970.00000 371.25000 5.94 0.0001
Error 36 2250.00000 62.50000
Corrected Total 44 5220.00000
R-Square C.V. Root MSE SCORE Mean
0.568966 22.58770 7.90569 35.0000
Source DF Type I SS Mean Square F Value Pr > F
A 2 190.00000 95.00000 1.52 0.2324
B 2 1543.33333 771.66667 12.35 0.0001
A*B 4 1236.66667 309.16667 4.95 0.0028
Contrast DF Contrast SS Mean Square F Value Pr > F
psy1-on a 1 67.50000 67.50000 1.08 0.3056
psy2-on a 1 122.50000 122.50000 1.96 0.1701
psy3-on b 1 1102.50000 1102.50000 17.64 0.0002
psy4-on b 1 440.83333 440.83333 7.05 0.0117
psy5-on ab 1 3.75000 3.75000 0.06 0.8079
psy6-on ab 1 1.25000 1.25000 0.02 0.8883
psy7-on ab 1 661.25000 661.25000 10.58 0.0025
psy8-on ab 1 570.41667 570.41667 9.13 0.0046

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