楼主: angel42102209
4842 1

[原创博文] 求助SNK两两间P值的计算 [推广有奖]

  • 0关注
  • 1粉丝

大专生

38%

还不是VIP/贵宾

-

威望
0
论坛币
62 个
通用积分
0
学术水平
0 点
热心指数
1 点
信用等级
0 点
经验
519 点
帖子
44
精华
0
在线时间
34 小时
注册时间
2008-7-28
最后登录
2014-11-5

楼主
angel42102209 发表于 2009-11-22 20:03:25 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
针对多组均数的两两比较可以用SNK检验,但SAS给出的结果是按组划分的,如A\B\C等,有无方法显示A与B,A与C,及B与C两两比较的P值呢,请高手赐教!
二维码

扫码加我 拉你入群

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

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


回帖推荐

bobguy 发表于2楼  查看完整内容

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); ...

本帖被以下文库推荐

沙发
bobguy 发表于 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;;
已有 1 人评分经验 论坛币 收起 理由
bakoll + 3 + 3 精彩帖子

总评分: 经验 + 3  论坛币 + 3   查看全部评分

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-1-22 01:10