data prg15_1;
do dose=1 to 4;
do response=0 to 1;
input f@@;
output;
end;
end;
cards;
12 3
10 5
9 6
5 10
;
run;
proc freq data=prg15_1;
tables dose*response/chisq trend norow nocol nopercent
scores=table;
weight f;
exact trend;
ods html;
run;
以上是程序(数据性质为原因变量(dose)为有序变量),我对上述进行了双向无序卡方检验,之后又进行了线性检验,发现双向无序卡方检验的P值为0.0651(大于0.05),而Z值为0.0132(小于0.05).我的疑惑是既然线性检验结果表明该率在不同组间有线性趋势,即逐渐增大,为什么双向无序卡方检验的结果表明各组间差异无意义呢?谢谢高手指点!