Description Usage Arguments Value References Examples
This function maximizes the power of the Wilcoxon-Mann-Whitney test for a given total sample size N and type-I error rate with respect to the allocation rate t = n_1/N.
1 | WMWssp_maximize(x, y, alpha = 0.05, N)
|
x |
a vector of prior information for the first group |
y |
a vector of prior information for the second group |
alpha |
Type I error rate |
N |
total sample size |
Returns an object from class WMWssp containing
result |
A dataframe with the results. |
t |
The optimal allocation rate. |
alpha |
The type-I error rate which was used. |
power |
The maximized power. |
N |
The total sample size which was used. |
Brunner, E., Bathke A. C. and Konietschke, F. Rank- and Pseudo-Rank Procedures in Factorial Designs - Using R and SAS. Springer Verlag. to appear.
Happ, M., Bathke, A. C., & Brunner, E. (2019). Optimal Sample Size Planning for the Wilcoxon-Mann-Whitney-Test. Statistics in medicine, 38(3), 363-375.
1 2 3 4 5 6 7 8 9 10 11 | # Prior information for the reference group
x <- c(315,375,356,374,412,418,445,403,431,410,391,475,379)
# generate data for treatment group based on a shift effect
y <- x - 20
#
N <- 112
# calculate optimal t
ssp <- WMWssp_maximize(x, y, alpha = 0.05, N)
summary(ssp)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.