cc02-2-rankSum: Wilcoxon Rank-Sum Statistic

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Compute the Wilcoxon rank-sum statistic.

Usage

1
rankSum(data, selector)

Arguments

data

numeric vector

selector

logical vector the same length as data

Details

This is an efficient function to compute the value of the Wilcoxon rank-sum statistic without the extra overhead of the full wilcox.test function. It is used internally by the MultiWilcoxonTest class to perform row-by-row Wilcoxon tests.

Value

Returns an integer, the rank-sum of the subset of the data for which the selector is true.

Author(s)

Kevin R. Coombes krc@silicovore.com

See Also

dwil, MultiWilcoxonTest

Examples

1
2
3
dd <- rnorm(100)
cc <- rep(c(TRUE, FALSE), each=50)
rankSum(dd, cc)

Example output

Loading required package: oompaBase
[1] 2685

ClassComparison documentation built on May 6, 2019, 5:02 p.m.