Reputation: 412
I'd like to calculate the one-sided p-value of x > y using the scipy.stats.mannwhitneyu function:
u_value, p_value = scipy.stats.mannwhitneyu(x, y)
however there is nowhere to specify the alternative hypothesis. In R it is possible by using:
wilcox.test(x, y, alternative = 'greater')
.
Does anyone know if it is possible to do this in python using scipy or any other package?
Upvotes: 3
Views: 2272
Reputation: 27125
As of Scipy 0.17.0, you can now do scipy.stats.mannwhitneyu(x, y, alternative='greater')
.
Upvotes: 5