View source: R/cap04-estratificada-estimacao.R
| estr_alocacao_custo | R Documentation |
Allocates strata sample sizes to minimise variance subject to a fixed total budget, when per-unit sampling costs differ across strata (Eqs. 4.7-4.8 for means, Eq. 4.13 for proportions).
estr_alocacao_custo(n, Nk, sigmak = NULL, pk = NULL, ck, ...)
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, |
ck |
Numeric vector with the sampling cost per unit in each stratum. |
... |
Ignored (see package overview on tolerated extra arguments). |
A sampling_result object with the per-stratum sample sizes
under cost-based optimum allocation.
Cochran, W.G. (1977). Sampling Techniques, 3rd ed. Wiley, cap. 5.
estr_alocacao_custo(n = 491, Nk = c(4000, 3000, 2000), sigmak = c(3, 3, 2),
ck = c(10, 10, 20))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.