View source: R/cap04-estratificada-estimacao.R
| estr_estima_media | R Documentation |
Estimates the population mean from data collected under stratified random sampling, given per-stratum sample means and sizes (Eqs. 4.1-4.4 of the course notes).
estr_estima_media(Nk, xk_bar, sk2, nk, conf = 0.95, ...)
Nk |
Numeric vector with the population size of each stratum. |
xk_bar |
Numeric vector with the sample mean of each stratum. |
sk2 |
Numeric vector with the sample variance 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 mean,
its variance, coefficient of variation, and confidence interval.
Cochran, W.G. (1977). Sampling Techniques, 3rd ed. Wiley, cap. 5.
estr_estima_media(Nk = c(1540, 770, 385), xk_bar = c(120, 118, 125),
sk2 = c(7, 9, 11), nk = c(69, 34, 17))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.