sampleSize {dendrometry} | R Documentation |
Sample size
Description
Sample size
Usage
sampleSize(
confLev = 0.95,
popPro = 0.5,
errorMargin = 0.05,
size = NULL,
method = "",
cv = NULL
)
Arguments
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. |
Value
The sample size.
Note
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
Examples
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()
[Package dendrometry version 0.0.3 Index]