proc format;
value a 1='11-20' 2='21-60' 3='61-80';
run;
data t;
do group=1 to 3;input n@;
do i=1 to n;
input x@@;
output ;
end;
end;
format group a.;
cards;
58 61 62 61 63 70 70 68 74 78 80 76
54 57 58 57 60 61 63 64 66 62
42 56 57 54 60 57 53 51
;
proc glm;
class group;
model x=group;
means group/snk;
run;
求指点这个程序哪里有问题,另外如果3组数据X,Y均要写在cards里面,来看一下X对Y 的影响在这三组中是否相同程序怎么修改,拜求大神指点!!!