A blog on statistics and R aiming at helping academics and professionals working with data to grasp important concepts in statistics and to apply them in R. See www.statsandr.com
Note that the presence of equal elements (ties) prevents an exact p-value calculation
Other functions calculate ?
Exact Wilcoxon-Mann-Whitney test with adjustment for ties:
> library("coin")
> wilcox_test(Grade ~ Sex,data= dat,alternative= "less",distribution = exact())
Exact Wilcoxon-Mann-Whitney Test
data: Grade by Sex (Boy, Girl)
Z = -2.3449, p-value = 0.008815
alternative hypothesis: true mu is less than 0
Asymptotic Wilcoxon-Mann-Whitney test with adjustment for ties:
> library("coin")
> wilcox_test(Grade ~ Sex,data= dat,alternative= "less")
Asymptotic Wilcoxon-Mann-Whitney Test
data: Grade by Sex (Boy, Girl)
Z = -2.3449, p-value = 0.009516
alternative hypothesis: true mu is less than 0
Solution for stochastic equality:
Brunner-Munzel generalized Wilcoxon-Mann-Whitney test
Other functions calculate ?
Solution for stochastic equality: