- 当直医のスレ Part4 [無断転載禁止]©2ch.net
438 :卵の名無しさん[sage]:2016/05/13(金) 17:00:00.74 ID:ZosiMmpC - Rの吐き出す順位和は手計算と異なるので調べたらこういう仕様だった。
クリック猿には関係ない話。 統計が最強の学問である。 底辺シリツ医大卒が最凶のバカである。 共通点はGarbage In, Garbage Out. # The literature is not unanimous about the definitions of # the Wilcoxon rank sum and Mann-Whitney tests. # The two most common definitions correspond to the sum of the ranks of # the first sample with the minimum value subtracted or not: # R subtracts and S-PLUS does not, # giving a value which is larger by m(m+1)/2 for a first sample of size m # http://stats.stackexchange.com/questions/65875/different-ways-to-calculate-the-test-statistic-for-the-wilcoxon-rank-sum-test m<-5 n<-10 x<-rnorm(m) y<-rnorm(n,1.05) W<-wilcox.test(x,y)$statistic ; W sum(rank(c(x,y))[1:m]) ; W + m*(m+1)/2 #p<-wilcox.test(x,y)$p.value ; p #pwilcox(W,a,b)*2
|