size.test.mann | R Documentation |
Computes the sample size in each group (assuming equal sample sizes) required for the Mann-Whitney test with desired power. A planning value of the Mann-Whitney parameter is required. In a 2-group experiment, this parameter is the proportion of members in the population with scores that would be larger under treatment 1 than treatment 2. In a 2-group nonexperiment where participants are sampled from two subpopulations of sizes N1 and N2, the parameter is the proportion of all N1 x N2 pairs in which a member from subpopulation 1 has a larger score than a member from subpopulation 2.
size.test.mann(alpha, pow, p)
alpha |
alpha level for hypothesis test |
pow |
desired power |
p |
planning value of Mann-Whitney parameter |
Returns the required sample size for each group
Noether1987statpsych
size.test.mann(.05, .90, .3)
# Should return:
# Sample size per group
# 44
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.