size.test.sign | R Documentation |
Computes the sample size required for a 1-group sign test with desired power (see size.test.sign.ps for a paired-samples sign test). The Sign test is a test of the null hypothesis that the population median is equal to some specified value. This null hypothesis can also be expressed in terms of the proportion of scores in the population that are greater than the hypothesized population median value. Under the null hypothesis, this proportion is equal to .5. This function requires a planning value of this population proportion.
size.test.sign(alpha, pow, p)
alpha |
alpha level for hypothesis test |
pow |
desired power |
p |
planning value of proportion |
Returns the required sample size
size.test.sign(.05, .90, .3)
# Should return:
# Sample size
# 67
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.