View source: R/cap04-estratificada-estimacao.R
| estr_alocacao_neyman | R Documentation |
Allocates a total sample size across strata to minimise variance for a
fixed total sample size, assuming equal per-unit cost across strata
(Eqs. 4.18-4.20 of the course notes). Works for both mean (sigmak
known) and proportion (pk known, substituting
sigmak = sqrt(pk*(1-pk))) problems.
estr_alocacao_neyman(n, Nk, sigmak = NULL, pk = NULL, ...)
n |
Total sample size to allocate. |
Nk |
Numeric vector with the population size of each stratum. |
sigmak |
Numeric vector with the population standard deviation of
each stratum (for a mean problem). Ignored if |
pk |
Numeric vector with the population proportion of each
stratum (for a proportion problem); if supplied, |
... |
Ignored (see package overview on tolerated extra arguments). |
A sampling_result object with the per-stratum sample sizes
under Neyman allocation.
Cochran, W.G. (1977). Sampling Techniques, 3rd ed. Wiley, cap. 5.
estr_alocacao_neyman(n = 261, Nk = c(1540, 770, 385), sigmak = c(2.6, 3, 3.3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.