Rs <tr><td>
@Html.DisplayFor(modelItem => item.CustomerName ) @Html.DisplayFor(modelItem => item.CustomerSurName)</td></tr>
可以使用不同的长度向量,但来自wilcox.test
的wilcoxon不能:我收到scipy.stats
错误消息。
unequal N
有没有办法在Python中获取Rs行为?
答案 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)