size.test.prop: Sample size for a test of a single proportion

View source: R/statpsych3.R

size.test.propR Documentation

Sample size for a test of a single proportion

Description

Computes the sample size required to test a population proportion with desired power using a correction for continuity in a 1-group design.

Usage

size.test.prop(alpha, pow, p, h)

Arguments

alpha

alpha level for hypothesis test

pow

desired power

p

planning value of proportion

h

null hypothesis value of proportion

Value

Returns the required sample size

References

\insertRef

Fleiss2003statpsych

Examples

size.test.prop(.05, .9, .5, .3)

# Should return:
# Sample size
#          65



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