View source: R/cap06-conglomerados-1etapa.R
| cong1_estima_media | R Documentation |
Estimates the population mean from a sample of whole clusters, all of whose elements were observed (one-stage cluster sampling), following Eqs. (6.1)-(6.4) of the course notes.
cong1_estima_media(yi, Mi, Nc, M = NULL, conf = 0.95, ...)
yi |
Numeric vector with the cluster totals ( |
Mi |
Numeric vector with the number of elements in each sampled cluster. |
Nc |
Total number of clusters in the population. |
M |
Optional total number of elements in the population (used to
compute the population average cluster size |
conf |
Confidence level, default |
... |
Ignored (see package overview on tolerated extra arguments). |
A sampling_result object with the estimated mean, variance,
and confidence interval.
Cochran, W.G. (1977). Sampling Techniques, 3rd ed. Wiley, cap. 9.
# Exemplo 6.1 (turmas da UFMT)
cong1_estima_media(
yi = c(1209, 921, 1116, 1433, 1037, 2112, 1737, 2206, 2112, 1870),
Mi = c(20, 16, 17, 21, 16, 25, 21, 26, 25, 23),
Nc = 373, M = 8018
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.