View source: R/sampleSizeWilcoxTwoSample.R
sampleSizeWilcoxTwoSample | R Documentation |
Compute the sample size required to test the hypothesis that two sets of independent samples,
X_1, ..., X_m
and Y_1, ..., Y_n
come from the
same population against that Y
's is to be larger than X
's.
sampleSizeWilcoxTwoSample(
delta = 0.75,
sig.level = 0.05,
power = 0.9,
ratio = 0.5,
two.sided = TRUE
)
delta |
Probability |
sig.level |
Significance level with default 0.05. |
power |
Power with default 0.9. |
ratio |
Ratio of the sample size of group 1 to the total samples size:
|
two.sided |
If |
data.frame with columns:
delta |
|
sig.level |
|
power |
|
ratio |
|
two.sided |
|
m |
Sample size of the group 1. |
n |
Sample size of the group 2. |
Kaspar Rufibach
Nother, G.E. (1987). Sample Size Determination for Some Common Nonparametric Tests JASA, 82, 644–647.
sampleSizeWilcoxTwoSample(delta = 0.75)
sampleSizeWilcoxTwoSample(delta = 0.85)
sampleSizeWilcoxTwoSample(delta = 0.85, power = 0.8)
sampleSizeWilcoxTwoSample(delta = 0.85, sig.level = 0.01)
sampleSizeWilcoxTwoSample(delta = 0.85, two.sided = FALSE)
tmp <- lapply(X = seq(0.55, 0.95, .1),
FUN = function(delta) sampleSizeWilcoxTwoSample(delta = delta, ratio = .25))
do.call(what = rbind, args = tmp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.