Learn R Programming

samplesize (version 0.1-5)

n.wilcox.no.ties: Sample size for Wilcoxon-Mann-Whitney test without ties

Description

Function computes sample size for Wilcoxon test without ties

Usage

n.wilcox.no.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 adjsuting for ties. Statistics in Medicine 2008; 27:462-468

See Also

n.wilcox.w.ties

Examples

Run this code
n.wilcox.no.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))

Run the code above in your browser using DataLab