Python wilcoxon:不等N.

时间:2015-11-24 09:52:34

标签: python scipy statistics

Rs <tr><td> @Html.DisplayFor(modelItem => item.CustomerName ) @Html.DisplayFor(modelItem => item.CustomerSurName)</td></tr> 可以使用不同的长度向量,但来自wilcox.test的wilcoxon不能:我收到scipy.stats错误消息。

unequal N

有没有办法在Python中获取Rs行为?

1 个答案:

答案 0 :(得分:6)

根据R docs:

Performs one- and two-sample Wilcoxon tests on vectors of data; the latter is also known as ‘Mann-Whitney’ test.

所以只需使用

from scipy.stats import mannwhitneyu
mannwhitneyu(range(10), range(12))
# (50.0, 0.26494055917435472)