Neste caso escrevemos em linguagem SAS e rodamos no SAS do laboratório de estatística da faculdade.
Recortamos e
colamos o texto em SAS com os dados da tabela a ser analisada e colamos no SAS 9.3 (English) na parte de baixo da tela que está em branco.
OBS: Para rodar este teste demos nomes para as faixas etárias que estão na tabela.
data VITIMAS;
input IDADE $ MORTES;
cards;
JOVENS 7274
JOVENS 7638
JOVENS 7919
ADOLESCENTES 562
ADOLESCENTES 549
ADOLESCENTES 593
CRIANÇAS 113
CRIANÇAS 101
CRIANÇAS 115
BEBES 183
BEBES 192
BEBES 190
;
proc ANOVA;
class IDADE;
model MORTES=IDADE;
means IDADE/
tukey lines;
run;
Clicamos no "homenzinho correndo" lá em cima (submit) para o programa rodar e...
The SAS System
|
The ANOVA Procedure
Class Level Information
|
||
Class
|
Levels
|
Values
|
IDADE
|
4
|
ADOLESCE
BEBES CRIANÇAS JOVENS
|
Number
of Observations Read
|
12
|
Number
of Observations Used
|
12
|
The SAS System
|
The ANOVA Procedure
Dependent Variable: MORTES
Source
|
DF
|
Sum of Squares
|
Mean Square
|
F Value
|
Pr > F
|
Model
|
3
|
120975710.9
|
40325237.0
|
1533.70
|
<.0001
|
Error
|
8
|
210342.0
|
26292.8
|
|
|
Corrected
Total
|
11
|
121186052.9
|
|
|
|
R-Square
|
Coeff Var
|
Root MSE
|
MORTES Mean
|
0.998264
|
7.651912
|
162.1504
|
2119.083
|
Source
|
DF
|
Anova SS
|
Mean Square
|
F Value
|
Pr > F
|
IDADE
|
3
|
120975710.9
|
40325237.0
|
1533.70
|
<.0001
|
The SAS System
|
The ANOVA Procedure
The SAS System
|
The ANOVA Procedure
Tukey's
Studentized Range (HSD) Test for MORTES
Note:
|
This test controls the Type I experimentwise
error rate, but it generally has a higher Type II error rate than REGWQ.
|
Alpha
|
0.05
|
Error
Degrees of Freedom
|
8
|
Error
Mean Square
|
26292.75
|
Critical Value of Studentized Range
|
4.52877
|
Minimum
Significant Difference
|
423.97
|
Means with the same
letter are
not significantly different. |
||||
Tukey Grouping
|
Mean
|
N
|
IDADE
|
|
|
A
|
7610.3
|
3
|
JOVENS
|
|
|
|
|
|
|
B
|
568.0
|
3
|
ADOLESCE
|
|
B
|
|
|
|
C
|
B
|
188.3
|
3
|
BEBES
|
C
|
|
|
|
|
C
|
|
109.7
|
3
|
CRIANÇAS
|
Aqui podemos verificar que p<0,0001, portanto temos 99% de confiança nos resultados.
E temos 3 categorias A, B, C que fixam subconjuntos em que os números não diferem estatisticamente, conforme o Teste de Comparações Múltiplas de Tukey ao nível de 95% de confiança.
Nenhum comentário:
Postar um comentário