powered by
ssize takes a population size and returns a sample size
ssize
ssize(N, ci = 0.95, me = 0.07, p = 0.5)
The population size
The desired confidence interval (default is 0.95)
The margin of error (default: +/- 0.07)
The expected rate of occurrence (default: 0.50)
Returns the estimated minimum sample size, rounded up to the nearest integer.
ssize uses a normal approximation of the hypergeomtric distribution approach.
# NOT RUN { ssize(1000) ssize(1000, ci=0.90, p=0.60) # }
Run the code above in your browser using DataLab