View source: R/cap06-conglomerados-2etapas.R
| cong2_estima_razao_media | R Documentation |
Analogous to cong2_estima_media() but for the case where the total
population size M is unknown, using the ratio estimator of
Eqs. (6.19)-(6.23) of the course notes, with m_barra (the sample
average cluster size) substituted for M_barra = M/Nc.
cong2_estima_razao_media(
dados = NULL,
Mi = NULL,
mi = NULL,
yi_bar = NULL,
si2 = NULL,
Nc,
M = NULL,
conf = 0.95,
...
)
dados |
A |
Mi |
Optional numeric vector with the population size of each
sampled cluster (used instead of |
mi |
Optional numeric vector with the number of sampled elements in each cluster. |
yi_bar |
Optional numeric vector with the sample mean of each cluster. |
si2 |
Optional numeric vector with the sample variance within each cluster (Eq. 6.15). |
Nc |
Total number of clusters in the population. |
M |
Ignored for this estimator (kept for signature symmetry with
|
conf |
Confidence level, default |
... |
Ignored (see package overview on tolerated extra arguments). |
A sampling_result object with the ratio-estimated mean, its
variance, and confidence interval.
Mi <- c(50, 65, 45, 48, 52, 58, 42, 66, 40, 56)
mi <- c(10, 13, 9, 10, 10, 12, 8, 13, 8, 11)
yi_bar <- c(5.4, 4.0, 5.6667, 4.8, 4.3, 3.8333, 5.0, 3.8462, 4.875, 5.0)
si2 <- c(11.3778, 10.6667, 16.75, 13.2889, 11.1222, 14.8788, 5.1429,
4.3077, 6.125, 11.8)
cong2_estima_razao_media(Mi = Mi, mi = mi, yi_bar = yi_bar, si2 = si2, Nc = 90)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.