Learn R Programming

rankFD (version 0.0.5)

WMWSSP: Sample size calculation for the Wilcoxon-Mann-Whitney test.

Description

Sample size calculation for the Wilcoxon-Mann-Whitney test.

Usage

WMWSSP(x1, x2, alpha, power, t)

Arguments

x1

advance information for the first group

x2

advance information for the second group

alpha

two sided type I error rate

power

power with the sample sizes of each group

t

proportion of subjects in the first group

Value

Returns a data frame

References

Brunner, E., Bathke A. C. and Konietschke, F. Rank- and Pseudo-Rank Procedures in Factorial Designs - Using R and SAS. Springer Verlag.

Examples

Run this code
# NOT RUN {
x1 = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2)
x2 = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3)
WMWSSP(x1,x2,0.05,0.8,0.5)
# }

Run the code above in your browser using DataLab