wmwTestInR: Wilcoxon-Mann-Whitney test in R

Description Usage Arguments Examples

View source: R/wmwTest.R

Description

Wilcoxon-Mann-Whitney test in R

Usage

1
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

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

Accio/BioQC documentation built on Jan. 27, 2022, 10:45 p.m.