View source: R/cap04-estratificada-tamanho.R
| estr_tamanho_media | R Documentation |
Computes the total sample size and, when alocacao is not "nenhuma",
the per-stratum allocation, to estimate a population mean under
stratified sampling, dispatching automatically between the
proportional/Neyman formula (Eq. 4.5) and the cost-based formula
(Eq. 4.8) depending on whether ck is supplied. Extra arguments not
needed for the chosen formula are ignored.
estr_tamanho_media(
Nk,
sigmak2,
d,
conf = 0.95,
ck = NULL,
alocacao = c("proporcional", "neyman", "custo", "nenhuma"),
arredondar = c("cima", "proximo"),
...
)
Nk |
Numeric vector with the population size of each stratum. |
sigmak2 |
Numeric vector with the population variance of each stratum. |
d |
Tolerable margin of error. |
conf |
Confidence level, default |
ck |
Optional numeric vector with the sampling cost per unit in each stratum. If supplied, the cost-based formula (Eq. 4.8) is used; otherwise the standard formula (Eq. 4.5) is used. |
alocacao |
How to allocate |
arredondar |
Either |
... |
Ignored (see package overview on tolerated extra arguments). |
A sampling_result object with the total sample size and,
unless alocacao = "nenhuma", the per-stratum allocation.
Cochran, W.G. (1977). Sampling Techniques, 3rd ed. Wiley, cap. 5.
estr_tamanho_media(Nk = c(1540, 770, 385), sigmak2 = c(7, 9, 11), d = 0.5, conf = 0.95)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.