quarta-feira, 7 de junho de 2017

Fatorial Sem Interação (7/6)


Exemplo Sem Interação Significativa

Autora: Ana Carolina Donofre (Dados simulados)





data fatorial;

input Linhagem $ Densidade $ GP;

cards;

C 10 2.44

C 10 2.39

C 10 2.42

C 10 2.45

C 14 2.03

C 14 1.99

C 14 2.05

C 14 2.07

C 18 1.78

C 18 1.83

C 18 1.81

C 18 1.73

R 10 2.37

R 10 2.30

R 10 2.34

R 10 2.38

R 14 1.88

R 14 1.90

R 14 1.87

R 14 1.92

R 18 1.65

R 18 1.69

R 18 1.70

R 18 1.67

;

proc print;

run;
Proc glm;
class Linhagem Densidade;
model GP = Linhagem Densidade Linhagem*Densidade;
means Linhagem / Tukey lines;
means Densidade / Tukey lines;
run;

Arquivo para Download Sem Interação:



Resultados SAS Sem Interação







Outro Exemplo Sem Interação


data consumo;
input Trat $ Imp $ Cons;
cards;
1 a 17.2
1 a 18.3
1 a 17.5
1 a 18.4
1 b 20.3
1 b 21.3
1 b 22.1
1 b 19.5
2 a 22.1
2 a 23.5
2 a 24.5
2 a 21.5
2 b 25.5
2 b 26.4
2 b 27.3
2 b 26.1
3 a 20.2
3 a 23.2
3 a 21.5
3 a 20.1
3 b 22.2
3 b 22.3
3 b 24.5
3 b 26.1
4 a 19.8
4 a 18.8
4 a 19.5
4 a 20.2
4 b 24.3
4 b 23.4
4 b 22.1
4 b 22.7
;
proc print;
run;
proc glm;
class Trat Imp;
model Cons = Trat Imp Trat*Imp;
lsmeans Trat*Imp / slice=Trat adjust=tukey PDIFF=all;
lsmeans Trat*Imp / slice=Imp adjust=tukey PDIFF=all;
run;


/*
means Trat / tukey lines;
means Imp / tukey lines;
*/

Saida:
The SAS System

ObsTratImpCons
11a17.2
21a18.3
31a17.5
41a18.4
51b20.3
61b21.3
71b22.1
81b19.5
92a22.1
102a23.5
112a24.5
122a21.5
132b25.5
142b26.4
152b27.3
162b26.1
173a20.2
183a23.2
193a21.5
203a20.1
213b22.2
223b22.3
233b24.5
243b26.1
254a19.8
264a18.8
274a19.5
284a20.2
294b24.3
304b23.4
314b22.1
324b22.7



The SAS System

The ANOVA Procedure
Class Level Information
ClassLevelsValues
Trat41 2 3 4
Imp2a b


Number of Observations Read32
Number of Observations Used32




The SAS System

The ANOVA Procedure
Dependent Variable: Cons
SourceDFSum of SquaresMean SquareF ValuePr > F
Model7196.070000028.010000020.53<.0001
Error2432.75000001.3645833
Corrected Total31228.8200000


R-SquareCoeff VarRoot MSECons Mean
0.8568745.3218851.16815421.95000


SourceDFAnova SSMean SquareF ValuePr > F
Trat3117.247500039.082500028.64<.0001
Imp177.501250077.501250056.79<.0001
Trat*Imp31.32125000.44041670.320.8088




The SAS System

The ANOVA Procedure





The SAS System

The ANOVA Procedure
Tukey's Studentized Range (HSD) Test for Cons


Note:This test controls the Type I experimentwise error rate, but it generally has a higher Type II error rate than REGWQ.
Alpha0.05
Error Degrees of Freedom24
Error Mean Square1.364583
Critical Value of Studentized Range3.90126
Minimum Significant Difference1.6112


Means with the same letter
are not significantly different.
Tukey GroupingMeanNTrat
A24.612582
B22.512583
B
B21.350084
C19.325081




The SAS System

The ANOVA Procedure





The SAS System

The ANOVA Procedure
Tukey's Studentized Range (HSD) Test for Cons


Note:This test controls the Type I experimentwise error rate, but it generally has a higher Type II error rate than REGWQ.
Alpha0.05
Error Degrees of Freedom24
Error Mean Square1.364583
Critical Value of Studentized Range2.91879
Minimum Significant Difference0.8524


Means with the same letter
are not significantly different.
Tukey GroupingMeanNImp
A23.506316b
B20.393816a



The SAS System

ObsTratImpCons
11a17.2
21a18.3
31a17.5
41a18.4
51b20.3
61b21.3
71b22.1
81b19.5
92a22.1
102a23.5
112a24.5
122a21.5
132b25.5
142b26.4
152b27.3
162b26.1
173a20.2
183a23.2
193a21.5
203a20.1
213b22.2
223b22.3
233b24.5
243b26.1
254a19.8
264a18.8
274a19.5
284a20.2
294b24.3
304b23.4
314b22.1
324b22.7



The SAS System

The GLM Procedure
Class Level Information
ClassLevelsValues
Trat41 2 3 4
Imp2a b


Number of Observations Read32
Number of Observations Used32




The SAS System

The GLM Procedure
Dependent Variable: Cons
SourceDFSum of SquaresMean SquareF ValuePr > F
Model7196.070000028.010000020.53<.0001
Error2432.75000001.3645833
Corrected Total31228.8200000


R-SquareCoeff VarRoot MSECons Mean
0.8568745.3218851.16815421.95000


SourceDFType I SSMean SquareF ValuePr > F
Trat3117.247500039.082500028.64<.0001
Imp177.501250077.501250056.79<.0001
Trat*Imp31.32125000.44041670.320.8088


SourceDFType III SSMean SquareF ValuePr > F
Trat3117.247500039.082500028.64<.0001
Imp177.501250077.501250056.79<.0001
Trat*Imp31.32125000.44041670.320.8088







The SAS System

The GLM Procedure
Least Squares Means
Adjustment for Multiple Comparisons: Tukey
TratImpCons LSMEANLSMEAN Number
1a17.85000001
1b20.80000002
2a22.90000003
2b26.32500004
3a21.25000005
3b23.77500006
4a19.57500007
4b23.12500008


Least Squares Means for effect Trat*Imp
Pr > |t| for H0: LSMean(i)=LSMean(j)
Dependent Variable: Cons
i/j12345678
10.0282<.0001<.00010.0080<.00010.4493<.0001
20.02820.2256<.00010.99920.02630.80870.1378
3<.00010.22560.00740.50360.95930.00991.0000
4<.0001<.00010.0074<.00010.0803<.00010.0141
50.00800.99920.5036<.00010.08550.48530.3489
6<.00010.02630.95930.08030.08550.00080.9923
70.44930.80870.0099<.00010.48530.00080.0052
8<.00010.13781.00000.01410.34890.99230.0052













The SAS System

The GLM Procedure
Least Squares Means
Trat*Imp Effect Sliced by Trat for Cons
TratDFSum of SquaresMean SquareF ValuePr > F
1117.40500017.40500012.750.0015
2123.46125023.46125017.190.0004
3112.75125012.7512509.340.0054
4125.20500025.20500018.470.0002




The SAS System

The GLM Procedure
Least Squares Means
Adjustment for Multiple Comparisons: Tukey
TratImpCons LSMEANLSMEAN Number
1a17.85000001
1b20.80000002
2a22.90000003
2b26.32500004
3a21.25000005
3b23.77500006
4a19.57500007
4b23.12500008


Least Squares Means for effect Trat*Imp
Pr > |t| for H0: LSMean(i)=LSMean(j)
Dependent Variable: Cons
i/j12345678
10.0282<.0001<.00010.0080<.00010.4493<.0001
20.02820.2256<.00010.99920.02630.80870.1378
3<.00010.22560.00740.50360.95930.00991.0000
4<.0001<.00010.0074<.00010.0803<.00010.0141
50.00800.99920.5036<.00010.08550.48530.3489
6<.00010.02630.95930.08030.08550.00080.9923
70.44930.80870.0099<.00010.48530.00080.0052
8<.00010.13781.00000.01410.34890.99230.0052













The SAS System

The GLM Procedure
Least Squares Means
Trat*Imp Effect Sliced by Imp for Cons
ImpDFSum of SquaresMean SquareF ValuePr > F
a356.62187518.87395813.83<.0001
b361.94687520.64895815.13<.0001



Nenhum comentário:

Postar um comentário