Computes the sample size required for a Sign test with desired power in a 1-sample design. A planning value of the 1-sample Sign test parameter value is required. This parameter is the proportion of members in the population with scores greater than the hypothesized value.

size.test.sign1(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.sign1(.05, .90, .3)
#>      Sample size
#> [1,]          56

# Should return:
#      Sample size
# [1,]          56