finitePropSampleSize: Proportion sample size - finite (known) population

Description Usage Arguments Value References Examples

Description

Calculate sample size needed to estimate a proportion within a given margin of error for a finite (known) population size.

Usage

1
finitePropSampleSize(N, moe, p = 0.5, conf = 0.95)

Arguments

N

population size

moe

margin of error expressed as a proportion (0 < moe < 1)

p

estimated proportion (default = 0.5); leave as is for most conservative estimate.

conf

confidence level associated with margin of error (default = 0.95)

Value

Estimated sample size needed to estimate a proportion within a given margin of error for a finite (known) population size.

References

Hogg, R. V. and Tanis, E. A. (2006), Probability and Statistical Inference 7e, Pearson, New Jersey.

Examples

1
finitePropSampleSize(N=3000, moe=0.03)

clayford/nandc documentation built on May 13, 2019, 7:38 p.m.