wmwTestInR {BioQC} | R Documentation |
Wilcoxon-Mann-Whitney test in R
wmwTestInR(x, sub, valType = c("p.greater", "p.less", "p.two.sided", "W"))
x |
A numerical vector |
sub |
A logical vector or integer vector to subset |
valType |
Type of retured-value. Supported values: p.greater, p.less, p.two.sided, and W statistic (note it is different from the U statistic) |
testNums <- 1:10 testSub <- rep_len(c(TRUE, FALSE), length.out=length(testNums)) wmwTestInR(testNums, testSub) wmwTestInR(testNums, testSub, valType="p.two.sided") wmwTestInR(testNums, testSub, valType="p.less") wmwTestInR(testNums, testSub, valType="W")