4918 6

请问好心人,用SAS进行friedman检验的程序代码是什么啊? [推广有奖]

  • 0关注
  • 0粉丝

高中生

12%

还不是VIP/贵宾

-

威望
0
论坛币
5 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
201 点
帖子
12
精华
0
在线时间
23 小时
注册时间
2015-10-6
最后登录
2017-11-2

楼主
爱复制粘贴麽 发表于 2016-2-26 16:31:56 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
【Friedman检验】请问用SAS进行friedman检验的程序代码是怎样的啊??求好心人分享一下代码格式!1跪谢了!!!
二维码

扫码加我 拉你入群

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

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

关键词:Friedman Fried 程序代码 Man IED 好心人 程序

本帖被以下文库推荐

  • · MyLib|主题: 414, 订阅: 41

沙发
爱复制粘贴麽 发表于 2016-2-27 09:17:12
等待好心人解答!!!!!

藤椅
爱复制粘贴麽 发表于 2016-2-27 19:28:39
坐等大神出来啊啊啊啊啊啊啊啊啊

板凳
tonic_zlj 发表于 2016-3-1 16:59:51
应该是用的mh选项。然后看结果里面是行还是列有序的检验。
proc freq data=a;
table x*y/mh;
run;

报纸
llulla 发表于 2016-3-3 07:14:06
Please read the attached file. It is helpful to understand the Friedman test and how to perform this test in SAS.

Hope it is useful for you.

地板
llulla 发表于 2016-3-3 07:26:49
The Following  is the code and example for Friedman test

SAS program for the Friedman Test

DATA Fried;
    INPUT BLOCK $ TRTMENT $ YIELD  @@;
    CARDS;
1 A 32.6     1 B 36.4     1 C 29.5    1 D 29.4
2 A 42.7     2 B 47.1     2 C 32.9    2 D 40.0
3 A 35.3     3 B 40.1     3 C 33.6    3 D 35.0
4 A 35.2     4 B 40.3     4 C 35.7    4 D 40.0
5 A 33.2     5 B 34.3     5 C 33.2    5 D 34.0
6 A 33.1     6 B 34.4     6 C 33.1    6 D 34.1
run;

PROC RANK;
    BY BLOCK;
    VAR YIELD;
    RANKS RYIELD;
RUN;

proc freq;
       tables block*trtment*ryield / noprint cmh;
       title 'Friedman''s Chi-Square';
run;

proc means median;
  class trtment;
   var yield;
run;

Output
                           Friedman's Chi-Square

                                                         The FREQ Procedure
                                    Cochran-Mantel-Haenszel Statistics (Based on Table Scores)

                                  Statistic    Alternative Hypothesis    DF       Value      Prob
                                  ---------------------------------------------------------------
                                      1        Nonzero Correlation        1      0.7448    0.3881
                                      2        Row Mean Scores Differ     3     12.6207    0.0055
                                      3        General Association       12     27.7500    0.0060

                                                      Total Sample Size = 24
                                                       The MEANS Procedure

                                                    Analysis Variable : YIELD

                                                                N
                                                  TRTMENT     Obs          Median
                                                  -------------------------------
                                                  A             6      34.2000000
                                                  B             6      38.2500000
                                                  C             6      33.1500000
                                                  D             6      34.5500000
                                                  -------------------------------

7
爱复制粘贴麽 发表于 2016-4-9 21:11:13
llulla 发表于 2016-3-3 07:26
The Following  is the code and example for Friedman test

SAS program for the Friedman Test
万分感谢!!!!好人一生平安!!!!!!

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

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