wilcox.manyzeros.exact {choplump}R Documentation

Wilcoxon Rank Sum Test

Description

This function gives exact p-values for the Wilcoxon rank sum. This algorithm is designed for the case when the responses are either positive or zero, and there are many zero responses. Its purpose is mostly for the validation of the choplump function (see vignette("choplumpValidation")).

Usage

wilcox.manyzeros.exact(W, Z)

Arguments

W

a vector of responses, should have some zeros and all rest positive

Z

a vector of group membership, should be either 0 or 1

Value

A vector of three types of p-values: p.lower, p.upper, and p.2sided.

Author(s)

M.P. Fay

See Also

choplump


[Package choplump version 1.1.2 Index]