Skip to content
Prev 24273 / 398502 Next

V-value in the wilcox.test resp. wilcox.exact

no. wilcox.test computes the statistic along the following lines

        x <- x - mu
        ZEROES <- any(x == 0)
        if(ZEROES)
            x <- x[x != 0]
        ...
        r <- rank(abs(x))
        STATISTIC <- sum(r[x > 0])

i.e. the sum of the ranks of the absolute values of x which belong
to positive values of x.
wilcox.test computes the p-value for you, no need to look up tables.

Torsten
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._