data aa;
do block=1 to 4;
do drug=1 to 4;
input x@@;
output;
end;
end;
cards;
0.000 0.283 0.114 0.094
0.009 0.196 1.146 0.131
0.003 0.217 0.158 0.065
0.001 0.236 0.159 0.087
;
run;
proc anova data=aa;
class block drug;
model x=block drug;
means drug/dunnett('1');
run;
如果我把上面的means语句后面的选项改为snk,即means drug/snk;然后结果就大相径庭,大侠看看是怎么回事啊?为什么会这样?作者: shiyiming 时间: 2008-6-23 23:14 标题: Re: 请教:关于一个程序的结果问题 I don't see any difference in two SAS outputs.
Two F-tests gave the same p-value.
The output for the multiple comparisons may looks different due the two different options you used in the program, but they gave the same conclusion. Dunnett compare drug 2,3 4, with drug 1, while SNK compare each possible pairs among four drugs.
Please read the ANOVA chapter in SAS help for more information.