View source: R/cap04-estratificada-estimacao.R
| estr_estima_proporcao | R Documentation |
Estimates a population proportion from data collected under stratified random sampling, given per-stratum sample proportions and sizes (Eqs. 4.9-4.11 of the course notes).
estr_estima_proporcao(Nk, pk, nk, conf = 0.95, ...)
Nk |
Numeric vector with the population size of each stratum. |
pk |
Numeric vector with the sample proportion of each stratum. |
nk |
Numeric vector with the sample size of each stratum. |
conf |
Confidence level, default |
... |
Ignored (see package overview on tolerated extra arguments). |
A sampling_result object with the estimated stratified
proportion, its variance, and confidence interval.
Cochran, W.G. (1977). Sampling Techniques, 3rd ed. Wiley, cap. 5.
estr_estima_proporcao(Nk = c(1540, 770, 385), pk = c(0.75, 0.50, 0.25),
nk = c(161, 81, 40))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.