n.wilcox.w.ties: Sample size for Wilcoxon-Mann-Whitney test with ties
Description
Function computes sample size for Wilcoxon-Mann-Whitney test adjusting for ties
Usage
n.wilcox.w.ties(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
Value
NTotal sample size
Details
p and q values are rates of group A and B in categories C_1,...C_D
References
Zhao YD, Rahardja D, Qu Yongming. Sample size calculation for the Wilcoxon-Mann-Whitney test adjusting for ties. Statistics in Medicine 2008; 27:462-468