Skip to content
Prev 207497 / 398503 Next

z value from wilcox.exact

netrunner wrote:
I don't think that wilcox.exact() provides this directly.
I would use wilcox_test() in pkg 'coin'.
If you do want to restrict yourself to exactRankTests::wilcox.exact,
then you could use the call with 'exact=FALSE' and invert the P-value:

pv <- wilcox.exact(y ~ x, exact = FALSE)$p.value
Z <- qnorm(pv/2) # for the default 2-sided test

You will have to provide the appropriate sign for Z.

  -Peter Ehlers