全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
4843 1
2009-11-22
针对多组均数的两两比较可以用SNK检验,但SAS给出的结果是按组划分的,如A\B\C等,有无方法显示A与B,A与C,及B与C两两比较的P值呢,请高手赐教!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2009-11-23 11:55:44
1# angel42102209

I am not sure what you want exactly and hope the following example would solve your problem.

HTH

***************************************************************

data t1;
  length group $1;
   do i = 1 to 50;
     c=mod(i,3);
     if c=0 then group='A';
     else if c=1 then group='B';
     else              group='C';
     if Group='A' then y=1+rannor(8897);
     else if Group='B' then y=2+rannor(8897);
     else y=3+rannor(8897);
     output;
    end;
run;

proc glm data=t1;
class group;
  model y=group/noint solution;
  estimate 'group of a=b' group 1 -1 0;
  estimate 'group of a=c' group 1 0 -1;
  estimate 'group of b=c' group 0 1 -1;

run;
quit;;
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群