Description Usage Arguments Examples
Wilcoxon-Mann-Whitney test in R
1 | 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) |
1 2 3 4 5 6 | 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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.