wmwTestInR {BioQC} | R Documentation

## Wilcoxon-Mann-Whitney test in R

### Description

Wilcoxon-Mann-Whitney test in R

### Usage

    wmwTestInR(x, sub, valType = c("p.greater", "p.less", "p.two.sided", "W"))

### Arguments

`x` | A numerical vector
`sub` | A logical vector or integer vector to subset `x`. Numbers in `sub` are compared with numbers out of `sub`
`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)

### Examples

    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")

[Package BioQC version 1.22.0 Index]