n.wilcox.ord {samplesize} | R Documentation |
Function computes sample size for Wilcoxon test on ordinal data with and without ties
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))
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 |
p and q values are rates of group A and B in categories C_1,...C_D
N |
Total sample size |
Ralph Scherer
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
n.wilcox.ord
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))