cc02-1-dwil: Wilcoxon Density Function

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

Description

Computes the density function for the Wilcoxon rank-sum distribution without centering.

Usage

1
dwil(q, m, n)

Arguments

q

vector of quantiles

m

number of observations in the first sample

n

number of observations in the second sample

Details

Computes the density function for the Wilcoxon rank-sum distribution, using exact values when both groups have fewer than 50 items and switching to a normal approximation otherwise. It was originally written for S-Plus, which still perversely insists that m and n must be less than 50. The function was retained when the OOMPA library was ported to R, since S-Plus keeps the actual rank-sum but R centers the distribution at zero. This function encapsulated the difference, allowing everything else to continue to work as it had worked previously.

Value

A vector of the same length as q containing (approximate or exact) values of the density function.

Author(s)

Kevin R. Coombes krc@silicovore.com

See Also

MultiWilcoxonTest

Examples

1
2
dwil(51:60, 9, 3)
dwil(51:60, 9, 51)

Example output

Loading required package: oompaBase
 [1] 0.03181818 0.03636364 0.04545455 0.05454545 0.05909091 0.06363636
 [7] 0.06818182 0.06818182 0.06818182 0.06818182
 [1] 1.853754e-07 2.039669e-07 2.243268e-07 2.466133e-07 2.709978e-07
 [6] 2.976657e-07 3.268178e-07 3.586713e-07 3.934606e-07 4.314394e-07

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