Reproduces coin::wilcox_test(y ~ group): the response is
rank-transformed (midranks) and the standardized sum of ranks in the
second group is referred to the normal (asymptotic) or exact
permutation distribution.
Examples
if (requireNamespace("coin", quietly = TRUE)) {
set.seed(1)
df <- data.frame(y = rnorm(40), g = factor(rep(c("a", "b"), 20)))
str(morie_wilcox_test(y ~ g, df), max.level = 1)
}
#> List of 3
#> $ statistic: num 0.812
#> $ p.value : num 0.417
#> $ method : chr "morie Wilcoxon permutation test"
