楼主: fxf258
5441 2

求教如何运用SAS程序进行信度分析 [推广有奖]

  • 1关注
  • 3粉丝

已卖:2份资源

教授

92%

还不是VIP/贵宾

-

威望
0
论坛币
3486 个
通用积分
31.7841
学术水平
-3 点
热心指数
2 点
信用等级
-3 点
经验
108706 点
帖子
499
精华
0
在线时间
2901 小时
注册时间
2006-11-4
最后登录
2025-12-23

楼主
fxf258 发表于 2009-3-3 11:49:00 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币

如对48个对象进行两次评分,结果如下,请教各位如何用SAS编程求同质性信度、再测信度和组内相关系数ICC值(intraclass correlation coefficients,ICC),谢谢!

评分1  评分2

8   8

8   6

11  7

10  9

8   8

12  12

12  12

14  14

7   10

14  15

13  15

13  13

10  12

14  12

14  13

10  8

9   9

9   9

9   9

9   8

10  12

9   6

9   8

12  12

12  14

9   9

9   9

11  10

11  13

13  14

13  13

8   8

8   8

9   8

9   10

15  15

15  15

10  10

10  10

8   6

8   8

9   9

9   6

10  10

10  9

9   9

9   9

10  10

二维码

扫码加我 拉你入群

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

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

关键词:sas程序 信度分析 coefficients correlation coefficient 程序 SAS 求教

回帖推荐

fxf258 发表于3楼  查看完整内容

谢谢bandbird的解答,我将bandbird提供的资料贴上,请大家参考,也请大家验证,谢谢!%macro Icc_sas(ds, response, subject); /*ds:資料名稱(含 library)response:反應變數名稱 subject:ID 名稱*/ ods output OverallANOVA =all; proc glm data=&ds;     class &subject;     model &response=&subject; run; data Icc(keep=sb sw n R R_low R_up);&nb ...

本帖被以下文库推荐

海象

沙发
bandbird 发表于 2009-3-3 12:17:00
http://sugiclub.blogspot.com/2008/06/reliability-analysis-calculate-and.html

這篇文章有附上程式碼的寫法

上面提到要直接算出組間相關係數需要寫程式碼

上面貼的網址有

自行貼到SAS上吧

感謝版主辛苦!感謝樓主分享!感謝四方解惑

藤椅
fxf258 发表于 2009-3-3 14:47:00

谢谢bandbird的解答,我将bandbird提供的资料贴上,请大家参考,也请大家验证,谢谢!

%macro Icc_sas(ds, response, subject);

/*ds:資料名稱(含 libraryresponse:反應變數名稱 subjectID 名稱*/

 ods output OverallANOVA =all;
 proc glm data=&ds;
     class &subject;
     model &response=&subject;
 run;
 data Icc(keep=sb sw n R R_low R_up);
     retain sb sw n;
     set all end=last;
     if source='Model' then sb=ms;
     if source='Error' then do;sw=ms; n=df; end;
     if last then do;
     R=round((sb-sw)/(sb+sw), 0.01);
     vR1=((1-R)**2)/2;
     vR2=(((1+R)**2)/n +((1-R)*(1+3*R)+4*(R**2))/(n-1));
     VR=VR1*VR2;
     L=(0.5*log((1+R)/(1-R)))-(1.96*sqrt(VR))/((1+R)*(1-R));
     U=(0.5*log((1+R)/(1-R)))+(1.96*sqrt(VR))/((1+R)*(1-R));
     R_Low=(exp(2*L)-1)/(exp(2*L)+1);
     R_Up=(exp(2*U)-1)/(exp(2*U)+1);
     output;
     end;
 run;
 proc print data=icc noobs split='*';
     var r r_low r_up;
     label r='ICC*' r_low='Lower bound*' r_up='Upper bound*';
     title 'Reliability test: ICC and its confidence limits';
 run;
%mend;

已有 1 人评分经验 论坛币 收起 理由
bakoll + 3 + 3 精彩帖子

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

海象

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-25 09:32