楼主: lnlhckao123
2884 10

[问答] 200论坛币请问秩和检验后两两比较的问题 [推广有奖]

  • 0关注
  • 3粉丝

副教授

61%

还不是VIP/贵宾

-

威望
0
论坛币
14832 个
通用积分
9.1001
学术水平
7 点
热心指数
4 点
信用等级
4 点
经验
12566 点
帖子
754
精华
0
在线时间
399 小时
注册时间
2010-8-21
最后登录
2024-2-8

200论坛币
请问高手,我对一定量资料进行两两比较后,为什么会出现两个两两比较结果,谢谢!

proc rank data=aaa  out=b6;var fe;ranks rfe;run;
proc anova data=b6;class age_group1;model fe=age_group1;means age_group1/cldiff t;run;



                                                         SAS 系统                2013年05月24日 星期五 上午12时32分09秒  22

                                                    The ANOVA Procedure

                                                  Class Level Information

                                        Class           Levels    Values

                                        age_group1           8    0 1 2 3 4 5 6 >6


                                          Number of Observations Read       19270
                                          Number of Observations Used       19270

                                                         SAS 系统                2013年05月24日 星期五 上午12时32分09秒  23

                                                    The ANOVA Procedure

Dependent Variable: Fe

                                                            Sum of
                    Source                      DF         Squares     Mean Square    F Value    Pr > F

                    Model                        7        6.287328        0.898190       2.53    0.0133

                    Error                    19262     6833.746202        0.354779

                    Corrected Total          19269     6840.033530


                                    R-Square     Coeff Var      Root MSE       Fe Mean

                                    0.000919      7.816584      0.595633      7.620118


                    Source                      DF        Anova SS     Mean Square    F Value    Pr > F

                    age_group1                   7      6.28732840      0.89818977       2.53    0.0133

                                                         SAS 系统                2013年05月24日 星期五 上午12时32分09秒  24

                                                    The ANOVA Procedure

                                                   t Tests (LSD) for Fe

             NOTE: This test controls the Type I comparisonwise error rate, not the experimentwise error rate.


                                             Alpha                        0.05
                                             Error Degrees of Freedom    19262
                                             Error Mean Square        0.354779
                                             Critical Value of t       1.96009


                              Comparisons significant at the 0.05 level are indicated by ***.


                                                  Difference
                                    age_group1       Between      95% Confidence
                                    Comparison         Means          Limits

                                     1  - >6         0.00034    -0.02788  0.02855
                                     1  - 5          0.00101    -0.04154  0.04357
                                     1  - 2          0.00151    -0.03084  0.03386
                                     1  - 6          0.03021    -0.00949  0.06992
                                     1  - 0          0.03556     0.01137  0.05976  ***
                                     1  - 4          0.03580    -0.00602  0.07761
                                     1  - 3          0.04433     0.00772  0.08095  ***
                                     >6 - 1         -0.00034    -0.02855  0.02788
                                     >6 - 5          0.00067    -0.04285  0.04420
                                     >6 - 2          0.00117    -0.03244  0.03479
                                     >6 - 6          0.02987    -0.01087  0.07062
                                     >6 - 0          0.03523     0.00936  0.06109  ***
                                     >6 - 4          0.03546    -0.00734  0.07826
                                     >6 - 3          0.04400     0.00626  0.08173  ***
                                     5  - 1         -0.00101    -0.04357  0.04154
                                     5  - >6        -0.00067    -0.04420  0.04285
                                     5  - 2          0.00050    -0.04581  0.04681
                                     5  - 6          0.02920    -0.02252  0.08092
                                     5  - 0          0.03455    -0.00648  0.07559
                                     5  - 4          0.03479    -0.01857  0.08815
                                     5  - 3          0.04332    -0.00606  0.09271
                                     2  - 1         -0.00151    -0.03386  0.03084
                                     2  - >6        -0.00117    -0.03479  0.03244
                                     2  - 5         -0.00050    -0.04681  0.04581
                                     2  - 6          0.02870    -0.01501  0.07241
                                     2  - 0          0.03405     0.00374  0.06437  ***
                                     2  - 4          0.03429    -0.01134  0.07992
                                     2  - 3          0.04282     0.00191  0.08374  ***
                                     6  - 1         -0.03021    -0.06992  0.00949
                                     6  - >6        -0.02987    -0.07062  0.01087
                                     6  - 5         -0.02920    -0.08092  0.02252
                                     6  - 2         -0.02870    -0.07241  0.01501
                                     6  - 0          0.00535    -0.03272  0.04342
                                     6  - 4          0.00559    -0.04553  0.05670
                                     6  - 3          0.01412    -0.03283  0.06107
                                     0  - 1         -0.03556    -0.05976 -0.01137  ***
                                     0  - >6        -0.03523    -0.06109 -0.00936  ***
                                     0  - 5         -0.03455    -0.07559  0.00648
                                     0  - 2         -0.03405    -0.06437 -0.00374  ***
                                     0  - 6         -0.00535    -0.04342  0.03272
                                     0  - 4          0.00024    -0.04003  0.04050
                                     0  - 3          0.00877    -0.02606  0.04360
                                     4  - 1         -0.03580    -0.07761  0.00602
                                     4  - >6        -0.03546    -0.07826  0.00734
                                     4  - 5         -0.03479    -0.08815  0.01857

                                                         SAS 系统                2013年05月24日 星期五 上午12时32分09秒  25

                                                    The ANOVA Procedure

                                                   t Tests (LSD) for Fe

                              Comparisons significant at the 0.05 level are indicated by ***.


                                                  Difference
                                    age_group1       Between      95% Confidence
                                    Comparison         Means          Limits

                                     4  - 2         -0.03429    -0.07992  0.01134
                                     4  - 6         -0.00559    -0.05670  0.04553
                                     4  - 0         -0.00024    -0.04050  0.04003
                                     4  - 3          0.00854    -0.04021  0.05728
                                     3  - 1         -0.04433    -0.08095 -0.00772  ***
                                     3  - >6        -0.04400    -0.08173 -0.00626  ***
                                     3  - 5         -0.04332    -0.09271  0.00606
                                     3  - 2         -0.04282    -0.08374 -0.00191  ***
                                     3  - 6         -0.01412    -0.06107  0.03283
                                     3  - 0         -0.00877    -0.04360  0.02606
                                     3  - 4         -0.00854    -0.05728  0.04021




最佳答案

yongyitian 查看完整内容

可以增加每页输出的行数 /* run the following statement, then run your code again to see the result. */ options pagesize=80; /* the number 80 is the number of line printed per page in output window */ /* the pagesize= option can be changed to other values, if it is required */ /* if you want to check the setting of pagesize option, run the following line */ proc optio ...
关键词:200论坛币 0论坛币 论坛币 observations observation 检验 两两 run
即使在人大经济论坛这个网络世界,我仍以真诚为基础与我的好友进行交往!
沙发
yongyitian 发表于 2013-5-24 02:24:49 |只看作者 |坛友微信交流群
可以增加每页输出的行数

/* run the following statement, then run your code again to see the result.  */

options pagesize=80;   

/* the number 80 is the number of line printed per page in output window     */
/* the pagesize= option can be changed to other values, if it is required         */
/* if you want to check the setting of pagesize option, run the following line   */

proc options option=pagesize define; run;

另外, 使用 option / CLDIFF   会输出所有成对的 (level of age_group) 的比较结果
相对应的两组结果之间,只是正副号和上下限不同. 比如:
age_group1      Between      95% Confidence
Comparison        Means          Limits
1  - >6         0.00034    -0.02788  0.02855
>6 - 1         -0.00034    -0.02855  0.02788
2  - 4          0.03429    -0.01134  0.07992
4  - 2         -0.03429    -0.07992  0.01134

已有 1 人评分学术水平 热心指数 信用等级 收起 理由
lnlhckao123 + 3 + 3 + 3 精彩帖子

总评分: 学术水平 + 3  热心指数 + 3  信用等级 + 3   查看全部评分

使用道具

藤椅
jingju11 发表于 2013-5-24 07:32:38 |只看作者 |坛友微信交流群
what do you mean two paired test results? jingju

使用道具

板凳
zkymath 在职认证  发表于 2013-5-25 22:20:21 |只看作者 |坛友微信交流群
不是显示不下么!
已有 1 人评分学术水平 热心指数 信用等级 收起 理由
lnlhckao123 + 1 + 1 + 1 热心帮助其他会员

总评分: 学术水平 + 1  热心指数 + 1  信用等级 + 1   查看全部评分

使用道具

报纸
boe 发表于 2013-5-25 22:30:48 |只看作者 |坛友微信交流群
output每一页显示的行数是有限的,为增强可读性,sas自动添加表头
已有 1 人评分学术水平 热心指数 信用等级 收起 理由
lnlhckao123 + 1 + 1 + 1 热心帮助其他会员

总评分: 学术水平 + 1  热心指数 + 1  信用等级 + 1   查看全部评分

Gorgeous girl , I love !

使用道具

地板
是风啊 发表于 2013-5-25 22:40:05 |只看作者 |坛友微信交流群
个人认为应该不是软件分析出错的问题,你可以这样看结果,嘿嘿,
QQ截图.png
QQ截图20130525223111.png
已有 1 人评分学术水平 热心指数 信用等级 收起 理由
lnlhckao123 + 1 + 1 + 1 热心帮助其他会员

总评分: 学术水平 + 1  热心指数 + 1  信用等级 + 1   查看全部评分

使用道具

7
是风啊 发表于 2013-5-25 22:41:42 |只看作者 |坛友微信交流群
您可以当做在word中一个表格太大,以致不能在一页中完全显示出来,而溢出到下一页,哈哈

使用道具

8
lnlhckao123 发表于 2013-5-31 22:56:45 |只看作者 |坛友微信交流群
谢谢yongyitian及其他战友!!
即使在人大经济论坛这个网络世界,我仍以真诚为基础与我的好友进行交往!

使用道具

9
lnlhckao123 发表于 2013-5-31 22:57:47 |只看作者 |坛友微信交流群
可否请yongyitian给个完整程序,谢谢!!!
即使在人大经济论坛这个网络世界,我仍以真诚为基础与我的好友进行交往!

使用道具

10
yongyitian 发表于 2013-6-1 12:09:40 |只看作者 |坛友微信交流群
lnlhckao123 发表于 2013-5-31 22:57
可否请yongyitian给个完整程序,谢谢!!!
/* The following example is from SASV8 document */
/* Example: Analyzing a 2 by 2 contingency Table */

/* This example computes chi-square tests and Fisher’s exact test to compare the probability
of coronary heart disease for two types of diet. It also estimates the relative
risks and computes exact confidence limits for the odds ratio.  */

proc format;
  value expfmt 1 = 'High Cholesterol Diet'
                       0 = 'Low Cholesterol  Diet';
  value rspfmt 1 = 'Yes'
                      0 = 'No';
run;

data fatcomp;
   input Exposure Response Count;
   label response = 'Heart Disease';
   datalines;
0 0 6
0 1 2
1 0 4
1 1 11
;
run;

proc sort data = fatcomp;
  by descending exposure descending response;
run;

proc freq data = fatcomp order = data;
   weight count;
   exact pchi or;  /* creates the exact Pearson chisquare test */
                          /* and exact confidence limits for the odds ratio */
   tables exposure*response /chisq relrisk;
   format exposure expfmt. response rspfmt.;
   title 'Case-Control Study of High Fat/Cholesterol Diet';
run;

使用道具

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

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-30 21:00