楼主: 蓝_23
27829 19

[编程问题求助] 如何用stata 用非参数检验 对组间进行两两比较 [推广有奖]

  • 2关注
  • 2粉丝

已卖:3份资源

硕士生

37%

还不是VIP/贵宾

-

威望
0
论坛币
52 个
通用积分
15.0307
学术水平
4 点
热心指数
4 点
信用等级
2 点
经验
7119 点
帖子
119
精华
0
在线时间
132 小时
注册时间
2013-3-27
最后登录
2017-7-15

楼主
蓝_23 发表于 2013-5-13 17:25:48 |AI写论文
2论坛币
stata   用非参数检验  对组间(组数>=3)进行两两比较

或指定第一组,同其他几组,进行两两比较,

有没有直接的命令,而不用编写ado命令。

median  kwallis  只能进行多组间比较

最佳答案

hplcdadong 查看完整内容

find and install kwallis2 help kwallis2
关键词:Stata 非参数检验 参数检验 tata 如何用 检验 两两 如何

本帖被以下文库推荐

沙发
hplcdadong 发表于 2013-5-13 17:25:49
find and install kwallis2
help kwallis2

藤椅
豆豆雨 发表于 2013-5-13 17:49:31
有两种方法:
1、你可以先对数据进行编秩  genrank rx=x   再对所编好的秩做方差分析 oneway rx g, t sch即可
2、先用Kruskal-Wallis H检验 kwallis x, by(g)   若有统计学意义  再用Nemenyi检验作两两比较即可

板凳
蓝_23 发表于 2013-5-13 17:58:27
谢谢,前一个方法,统计书上没有,后面一个,我输完命令
. kwallis  cd_cre, by( agegrp)
然后,接下来怎么做?
help  Nemeny
没这个命令

报纸
蓝_23 发表于 2013-5-14 08:33:51
hplcdadong 发表于 2013-5-14 02:17
find and install kwallis2
help kwallis2
谢谢,指教。
用的11.2 版本,命令不识别
去下载12.0的看看

地板
豆豆雨 发表于 2013-5-14 20:51:19
hplcdadong 发表于 2013-5-14 02:17
find and install kwallis2
help kwallis2
请问:  “kwallis2”输出的结果是有两两比较结果,请问该命令计算的是扩展的t检验还是 Nemenyi检验?谢谢

7
hplcdadong 发表于 2013-5-14 21:58:49
1) Kwallis2 works well in my Stata11.1

As regards to:
请问:  “kwallis2”输出的结果是有两两比较结果,请问该命令计算的是扩展的t检验还是 Nemenyi检验?谢谢
the following is a good answer from Paul F. Visintainer, PhD

A question about how -kwallis2- computes the adjusted critical level pops up occasionally (see http://www.stata.com/statalist/archive/2009-02/msg00379.html).  It seems as if the adjusted critical level is too conservative for a usual Bonferroni's adjustment, using alpha/(k(k-1)) rather than alpha/k.  (I even modified kwallis2 to use alpha/k adjustment).  Now, however, I believe that -kwallis2- is indeed using the correct adjustment.

Recently I had some data which I gave to a colleague who uses BMDP (remember BMDP?).  His output was virtually identical to -kwallis2-, using the alpha/(k(k-1)) adjustment.  The old BMDP manual (1992) states that the observed "Z is compared with the tabled Z[alpha*/2], where alpha* = 2alpha/(k(k-1)).    So, alpha*/2 = alpha/(k(k-1)), which is what -kwallis2- uses.

My interpretation of this is that the global K-W test is one-sided (e.g., a chi-square test where all squared deviations are positive), but the post-hoc pairwise comparisons are two-sided, either positive or negative deviations.  Another way of thinking about it is that if the conventional Bonferroni's adjustment were applied (alpha/k), the global test would be conducted at a critical level of 5%, but the post-hoc tests would be equivalent to computing adjusted 90% confidence intervals.


Paul F. Visintainer, PhD
Baystate Medical Center
280 Chestnut Street
Springfield, MA 01199

已有 1 人评分经验 论坛币 学术水平 热心指数 信用等级 收起 理由
Sunknownay + 100 + 10 + 1 + 1 + 1 热心帮助其他会员

总评分: 经验 + 100  论坛币 + 10  学术水平 + 1  热心指数 + 1  信用等级 + 1   查看全部评分

8
蓝_23 发表于 2013-5-15 08:34:06
hplcdadong 发表于 2013-5-14 02:17
find and install kwallis2
help kwallis2
早,请问下你用的什么版本?确定可以做?
最后还是用spss20 做得

9
hplcdadong 发表于 2013-5-15 21:11:50
Mine: Stata SE 11.1
Kwallis2 is an old user-written ado. It should work for Stata 8-12

10
蓝_23 发表于 2013-5-16 09:55:18
hplcdadong 发表于 2013-5-15 21:11
Mine: Stata SE 11.1
Kwallis2 is an old user-written ado. It should work for Stata 8-12
最近,在看复杂抽样,本科学得统计弱爆了。去网上再看看,ado文件夹里只有kwallis,手册manual里也没有

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

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-29 06:51