size.test.sign1: Sample size for a 1-sample Sign test

View source: R/statpsych1.R

size.test.sign1R Documentation

Sample size for a 1-sample Sign test

Description

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.

Usage

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)

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


statpsych documentation built on July 9, 2023, 6:50 p.m.