data zgr;
do g=1 to 13;
do r=1 to 6;
input y1@@;
y=log10(y1);
output;
end;end;
cards;
11.00 8.82 9.79 12.95 11.29 17.81
11.00 10.00 10.00 14.00 12.00 16.00
12.71 10.35 11.50 13.50 12.71 19.50
12.50 11.00 9.43 13.14 10.70 18.43
12.50 9.71 10.00 15.00 12.00 19.00
12.00 8.00 9.33 11.33 10.33 18.10
12.00 9.50 10.19 11.38 10.90 18.47
11.00 10.00 9.00 11.00 12.00 18.00
10.00 9.40 8.60 14.00 11.00 16.80
10.60 10.90 9.18 14.00 13.00 17.00
11.93 9.32 11.29 13.71 11.31 17.29
12.71 10.00 9.00 14.60 12.00 16.54
12.00 10.00 9.00 14.00 10.50 16.00
;
proc univariate normal;class g;var y;
proc glm;class g;model y=g;means g/hovtest=levene;
proc glm;class g;model y=g r g*r/ss1;
proc glm;class g; model y=r g r*g/ss1;
proc glm;class g;model y=r g;means g/t bon snk;
proc glm;class g;model y=r g/solution ss3;lsmeans g/stderr pdiff;
run;
大致情况,因为第七个城市价格非正态,进行了转化。在其他条件都符合的情况下进行了控制时间因素影响的协方差分析。表明各城市猪肉价格差异不显著。在控制比较误差的多重检验情况下,任两城市猪肉价格齐同。
提醒一下,模型中的猪肉价格在时间上极其差异显著。
热心回答他人疑问,给予100现金奖励
[此贴子已经被eijuhz于2007-12-22 18:41:27编辑过]