sampleSize | R Documentation |
Sample size
sampleSize(
confLev = 0.95,
popPro = 0.5,
errorMargin = 0.05,
size = NULL,
method = "",
cv = NULL
)
confLev |
numeric, the confidence level. Default is |
popPro |
numeric, proportion of population which have considered factor.
Default is |
errorMargin |
numeric, margin error. Default is |
size |
integer, population size when it is known. If not specified, simple random sampling will be used. Allows infinite. |
method |
optional character string specifying method to use if not simple adjusted is desired. Only "cauchran" is implemented now. |
cv |
variation coefficient. |
The sample size.
Population size to be considered as large or infinite heavily depends on error margin. Lower error margin increases population size to be conidered as large or infinite. For errorMargin = .05, size = 152 231 and cauchran 151 760 when confLev = .05
sampleSize(confLev = .95, popPro = 0.4, errorMargin = .05)
sampleSize(confLev = .95, popPro = 0.5, errorMargin = .05, size = 150)
sampleSize(
confLev = .95, popPro = 0.5, errorMargin = .05, size = 150,
method = "cauchran"
)
sampleSize()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.