View source: R/cap07-tamanho-guarda-chuva.R
| razao_tamanho_R | R Documentation |
Computes the sample size needed to estimate the population ratio R
with a given margin of error (Eq. 7.41 of the course notes).
razao_tamanho_R(
sr2,
N,
X_barra,
d,
conf = 0.95,
arredondar = c("cima", "proximo"),
...
)
sr2 |
Variance of the ratio estimator (population value, or a
pilot-sample estimate from |
N |
Population size. |
X_barra |
Population mean of the auxiliary variable ( |
d |
Tolerable margin of error. |
conf |
Confidence level, default |
arredondar |
Either |
... |
Ignored (see package overview on tolerated extra arguments). |
A sampling_result object with the required sample size.
razao_tamanho_R(sr2 = 7.7853, N = 1500, X_barra = 10, d = 0.05)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.