Description Usage Arguments Value References Examples
Determines random sample size
1 |
N |
population universe (e.g. 10000, nrow(df)) |
e |
tolerable margin of error (integer or float, e.g. 5, 2.5) |
ci |
(optional) confidence level for establishing a confidence interval using z-score (defaults to 95; restricted to 80, 85, 90, 95 or 99 as input) |
p |
(optional) anticipated response distribution (defaults to 0.5; takes value between 0 and 1 as input) |
over |
(optional) desired oversampling proportion (defaults to 0; takes value between 0 and 1 as input) |
Returns appropriate sample size (rounded up to nearest integer)
[1] Sampling Design & Analysis, S. Lohr, 1999, equation 2.17
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.