n.wilcox.ord {samplesize}R Documentation

Sample size for Wilcoxon-Mann-Whitney test on ordinal data with and without ties

Description

Function computes sample size for Wilcoxon test on ordinal data with and without ties

Usage

n.wilcox.ord(beta = 0.2, alpha = 0.05, t = 0.53, p = c(0.66, 0.15, 0.19), q = c(0.61, 0.23, 0.16))

Arguments

beta required Level II-error
alpha required Level I-error
t treatment fraction n/N, n is sample size of group B
p vector of rates of group A
q vector of rates of group B

Details

p and q values are rates of group A and B in categories C_1,...C_D

Value

N Total sample size

Author(s)

Ralph Scherer

References

Zhao YD, Rahardja D, Qu Yongming. Sample size calculation for the Wilcoxon-Mann-Whitney test adjsuting for ties. Statistics in Medicine 2008; 27:462-468

See Also

n.wilcox.ord

Examples

n.wilcox.ord(beta = 0.2, alpha = 0.05, t = 0.53, p = c(0.66, 0.15, 0.19), q = c(0.61, 0.23, 0.16))

[Package samplesize version 0.1-6 Index]