Академический Документы
Профессиональный Документы
Культура Документы
3
3
3
10
10
10
10
1
1
1
1
1
1
1
1
16.7
15.6
17.5
15.7
19.0
18.4
16.1
15.4
3
3
3
3
10
10
10
10
4
4
4
4
4
4
4
4
1
2
3
4
1
2
3
4
1
1
1
1
1
1
1
1
10.8
15.6
12.9
13.4
14.6
11.6
12.8
14.3
Subsample 1
Subsample 2
proc GLM;
class D R Block plot;
model number= Block D R D*R plot(D*R*Block);
random plot(D*R*Block);
test h= D
e= plot(D*R*Block);
test h= R
e= plot(D*R*Block);
test h= D*R e= plot(D*R*Block);
proc varcomp Method= Type1;
class D R Block plot;
model number= Block D R D*R plot(D*R*Block);
run; quit;
Dependent Variable: number
Source
DF
SS
Model
23
391.2
Error
24
48.0
Corrected Total
47
439.2
Source
Block
D
R
D*R
plot(D*R*Block)
DF
3
1
2
2
15
SS
1.16
3.00
307.33
0.98
78.77
MS
17.0
2.0
F
8.51
MS
0.39
3.00
153.66
0.49
5.25
F
0.19
1.50
76.83
0.24
2.63
Pr > F
<.0001
Pr > F
0.90
0.23
<.0001
0.7846
0.0170
Estimate
-0.40528
0.10458
9.57333
-0.59514
1.62556
2.00000
%
0
1
72
0
12
15
Ns
2
Ce.u . * sSUB
C SUB * se2.u .
3
3
3
3
10
10
10
10
8
8
8
8
8
8
8
8
1
2
3
4
1
2
3
4
1
1
1
1
1
1
1
1
8.9
11.3
10.7
10.6
9.8
9.2
12.3
12.2
data interpart;
input type Vrn1 Vrn2 days;
cards;
1 0 0 89
1 0 0 97
1 0 0 98
2 0 1 133
2 0 1 148
2 0 1 138
2 0 1 128
2 0 1 130
2 0 1 134
2 0 1 133
2 0 1 148
3 0 2 163
3 0 2 153
3 0 2 156
4 1 0 83
4 1 0 87
4 1 0 81
4 1 0 99
4 1 0 78
4 1 0 92
4 1 0 85
4 1 0 83
5 1 1 121
5 1 1 121
5 1 1 118
5 1 1 123
5 1 1 108
5 1 1 112
5 1 1 98
5 1 1 116
5 1 1 110
5 1 1 113
6 1 2 140
6 1 2 125
6 1 2 132
6 1 2 133
6 1 2 125
6 1 2 125
6 1 2 128
6 1 2 135
7 2 0 81
7 2 0 99
7 2 0 73
8 2 1 137
8 2 1 153
8 2 1 86
8 2 1 120
8 2 1 120
8 2 1 106
8 2 1 112
9 2 2 124
9 2 2 124
;
proc glm order=data;
class vrn1 vrn2;
model days= vrn1|vrn2;
contrast 'Lineal Vrn1'
contrast 'Quadratic Vrn1'
proc glm order=data;
class type;
model days= type;
contrast 'Lineal
Vrn1'
contrast 'Quadrat Vrn1'
contrast 'Lineal
Vrn2'
contrast 'Quadrat Vrn2'
contrast 'Int l by l'
contrast 'Int l by q'
contrast 'Int q by l'
contrast 'Int q by q'
run; quit;
1
2
2
2
2
3
3
4
4
4
4
5
5
5
5
5
6
6
6
7
7
8
8
8
8
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
1
1
1
1
2
2
2
2
2
2
0
1
1
1
1
2
2
0
0
0
0
1
1
1
1
1
2
2
2
0
0
1
1
1
1
101
144
130
137
138
153
148
103
98
92
66
122
124
126
106
129
178
135
128
91
88
118
114
118
111
1
2
2
2
2
3
4
4
4
4
5
5
5
5
5
5
6
6
6
7
7
8
8
8
8
0
0
0
0
0
0
1
1
1
1
1
1
1
1
1
1
1
1
1
2
2
2
2
2
2
0
1
1
1
1
2
0
0
0
0
1
1
1
1
1
1
2
2
2
0
0
1
1
1
1
100
148
133
141
131
161
109
110
83
91
122
125
125
118
117
116
136
134
121
103
99
120
126
119
117
Vrn2
Vrn1
vrn1 -1 0 1;
vrn1 1 -2 1;
1
0
0
Type
Type
Type
Type
Type
Type
Type
Type
2
0
1
3
0
2
4
1
0
5
1
1
6
1
2
7
2
0
8
2
1
-1 -1 -1 0 0 0 1 1
1 1 1 -2 -2 -2 1 1
-1 0 1 -1 0 1 -1 0
1 -2 1 1 -2 1 1 -2
1 0 -1 0 0 0 -1 0
-1 2 -1 0 0 0 1 -2
-1 0 1 2 0 -2 -1 0
1 -2 1 -2 4 -2 1 -2
9 Type
2 Vrn1
2 Vrn2
1;
1;
1;
1;
1;
1;
1;
1;
3x3 Factorial
Class
Vrn1
Vrn2
Levels
3
3
Source
Model
Error
Corrected Total
Source
Vrn1
Vrn2
Vrn1*Vrn2
Values
0 1 2
0 1 2
DF
8
93
101
DF
2
2
4
Contrast
Lineal
Vrn1
Quadrat Vrn1
DF
1
1
SS
38006
10282
48288
MS
4751
111
Type III SS MS
4435
2217
21310
10655
808
202
SS
2829
847
MS
2829
847
F Value
42.97
F Value
20.06
96.37
1.83
F Value
25.58
7.66
Pr > F
<.0001
Pr > F
<.0001
<.0001
0.1303 NS
Pr > F
<.0001
0.0068
Levels
9
Source
Type
Error
Corrected Total
Contrast
Lineal
Quadrat
Lineal
Quadrat
Int l by
Int l by
Int q by
Int q by
Vrn1
Vrn1
Vrn2
Vrn2
l
q
l
q
Values
1 2 3 4 5 6 7 8 9
DF
8
93
101
SS
38006
10282
48288
DF
1
1
1
1
1
1
1
1
SS
2829
847
16181
1650
631
0
12
161
MS
4751
111
MS
2829
847
16181
1650
631
0
12
161
F Value
Pr > F
42.97
<.0001
F Value
25.58
7.66
146.35
14.92
5.71
0.00
0.11
1.46
Pr > F
<.0001
0.0068
<.0001
0.0002
0.0189
0.9523
0.7465
0.2305
Note that even though the interaction in the 3x3 factorial is not significant, the
lineal by lineal interaction is significant.
Note also that the Lineal and Quadratic contrast for the main Vrn1 are identical in
both analyses.
A= time
(a1)= A.M. (a2)= P.M.
(b1)=
control
Mean of 5
Mean of 5
obs.: 66.39 obs.: 182.67
249.06
(b2)=
treated
Mean of 5
Mean of 5
obs.: 96.80 obs.: 139.06
235.86
Factor
B=
estrogen
Total
163.19
321.73
Total
484.92
SAS analysis
data fact1;
input id time $ estgn $ phos @@;
cards;
1
1
1
1
1
am
am
am
am
am
c
c
c
c
c
8.53
20.53
12.53
14.00
10.80
2
2
2
2
2
am
am
am
am
am
t
t
t
t
t
17.53
21.07
20.80
17.33
20.07
3
3
3
3
3
pm
pm
pm
pm
pm
c
c
c
c
c
39.14
26.20
31.33
45.80
40.20
4
4
4
4
4
pm
pm
pm
pm
pm
t
t
t
t
t
32.00
23.80
28.87
25.06
29.33
;
proc glm;
class time estgn;
model phos=time|estgn;
run; quit;
OUTPUT
First PROC GLM
Dependent Variable: PHOS
Source
TIME
ESTGN
TIME*ESTGN
ERROR
DF
1
1
1
16
Anova SS
1256.74658
8.71200
273.94802
379.92000
Mean Square
F Value
1256.74658
8.71200
273.94802
23.75000
52.93
0.37
11.54
Pr > F
0.0001
0.5532
0.0037
One general way of testing the simple effects is using the by statement
Use proc sort before, to sort by the variable used in the by statement
proc sort;
by time;
proc glm;
class estgn;
model phos= estgn;
means estgn / Hovtest= Levene;
by time;
proc sort;
by estgn;
proc glm;
class time;
model phos=time;
means time / Hovtest= Levene;
by estgn;
run; quit;
You need to test the assumptions for each one way ANOVA!
One Way ANOVAS
DF
Between
Between
Between
Between
1
1
1
1
Contrast
SS
Pr > F
1352.1
178.6
92.5
190.2
0.0004
0.0011
0.0237
0.0495
You can use 4 CONTRAST but you need to adjust to control the MEER (3 df)
With =0.05 MEER=1-(1-)4=0.18 With =0.01 MEER=1-(1-)4=0.04
B1
B2
B3
B4
B5
A1C1
A2C1
A3C1
A1C2
A2C2
A3C2
61
39
121
79
91
38
61
82
68
31
81
49
41
59
61
31
68
78
122
92
27
103
57
127
43
113
143
63
167
128
A
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
Resp C1- Resp
C RESP
1
1
1
1
1
1
1
2
1
2
1
2
2
1
2
1
2
1
2
2
2
2
2
2
3
1
3
1
3
1
3
2
3
2
3
2
4
1
4
1
4
1
4
2
4
2
4
2
5
1
5
1
5
1
5
2
5
2
5
2
C2 at AxB
C1_C2
30
61
38
11
81
-32
30
31
27
11
113
-32
39
-29
61
-42
49
-94
68
-29
103
-42
143
-94
121
43
82
25
41
-22
78
43
57
25
63
-22
79
-43
68
-59
59
-108
122
-43
127
-59
167
-108
91
-1
31
-12
61
-67
92
-1
43
-12
128
-67
Resp AxB within 1C level
AB combinations for C2
Response
Response
120
100
80
60
40
A2-level
20
0
1
180
160
140
120
100
80
60
40
20
0
A3
A1
A2
B-levels
4
B-levels
The lines of mean plots for fixed C1 (left) and C2 (right) levels are not
parallel indicating a two-way interaction between A and B in both
levels of C. The 1st order interaction (AxB) now has two values:
(AxB, c1) and (AxB, c2). The interaction term (AxB) is the average.
If, the differences between different levels of A are taken over levels
of say, B, for the two different C levels, the plot of these differences
reveals no interaction between BC. The lack of BC interaction with
the differences between levels of A indicates that no ABC interaction
is present in these means, i.e. ()ijk = 0.
(A2-A3) for BC combinations
(A1-A2) fo r B C levels
60
60
C1
C2
40
20
0
1
-20
80
40
20
0
1
-20
C1
-40
-60
-80
C2
-100
-40
B -le v e ls
B-le ve ls