小米不哭 发表于 2010-3-29 13:56 
为什么stata中 median 和k wallis 做出来的结果不一样呢?
陈峰老师的书上第一版用的是后者,而第二版换成前者。。可是我做出来两个结果不一样。。
它们本来就是不同的检验吧:
kwallis tests the hypothesis that several samples are from the same population (and it is a multiple-sample generalization of the two-sample Wilcoxon rank sum test -
ranksum);
median performs a nonparametric K-sample test on the equality of medians.