size.test.sign: Sample size for a 1-group sign test

View source: R/statpsych1.R

size.test.signR Documentation

Sample size for a 1-group sign test

Description

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.

Usage

size.test.sign(alpha, pow, p)

Arguments

alpha

alpha level for hypothesis test

pow

desired power

p

planning value of proportion

Value

Returns the required sample size

Examples

size.test.sign(.05, .90, .3)

# Should return:
# Sample size
#          67
 


statpsych documentation built on Sept. 11, 2024, 7:42 p.m.