ssize {whSample} | R Documentation |
Determine minimum sample size
Description
ssize
takes a population size and returns a sample size
Usage
ssize(N, ci = 0.95, me = 0.07, p = 0.5)
Arguments
N |
The population size |
ci |
The desired confidence interval (default is 0.95) |
me |
The margin of error (default: +/- 0.07) |
p |
The expected rate of occurrence (default: 0.50) |
Value
Returns the estimated minimum sample size, rounded up to the nearest integer.
Details
ssize
uses a normal approximation of the hypergeomtric distribution approach.
Examples
ssize(1000)
ssize(1000, ci=0.90, p=0.60)
[Package whSample version 0.9.6.2 Index]