| aas_tamanho_media | R Documentation |
Computes the sample size needed to estimate a population mean with a
given margin of error, choosing automatically between the
infinite/unknown-population formula (Eq. 3.15) and the finite-population
formula (Eq. 3.37/3.38) depending on whether N is supplied. Extra
arguments not needed for the chosen formula are ignored.
aas_tamanho_media(
sigma2 = NULL,
sigma = NULL,
d,
conf = 0.95,
N = NULL,
perda = 0,
arredondar = c("cima", "proximo"),
...
)
sigma2 |
Population variance (or its estimate). Alternatively
supply |
sigma |
Optional population standard deviation, used only if
|
d |
Tolerable margin of error (same units as the variable). |
conf |
Confidence level, default |
N |
Optional population size. If |
perda |
Optional flat safety-margin proportion (e.g. |
arredondar |
Either |
... |
Ignored (see package overview on tolerated extra arguments). |
A sampling_result object with the required sample size.
Cochran, W.G. (1977). Sampling Techniques, 3rd ed. Wiley.
aas_tamanho_media(sigma = 7, d = 2, conf = 0.95)
aas_tamanho_media(sigma2 = 1240, d = 7, conf = 0.95, N = 10000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.