| aas_tamanho_proporcao | R Documentation |
Computes the sample size needed to estimate a population proportion with
a given margin of error, using the infinite/unknown-population formula
(Eq. 3.23, or the conservative Eq. 3.24 when p is unknown) or the
finite-population formula (Eq. 3.45) when N is supplied.
aas_tamanho_proporcao(
p = NULL,
d,
conf = 0.95,
N = NULL,
perda = 0,
arredondar = c("cima", "proximo"),
...
)
p |
Expected proportion. If |
d |
Tolerable margin of error (same units as the variable). |
conf |
Confidence level, default |
N |
Optional population size. If |
perda |
Optional flat safety-margin proportion (e.g. |
arredondar |
Either |
... |
Ignored (see package overview on tolerated extra arguments). |
A sampling_result object with the required sample size.
Cochran, W.G. (1977). Sampling Techniques, 3rd ed. Wiley.
aas_tamanho_proporcao(p = 0.6, d = 0.03, conf = 0.95)
aas_tamanho_proporcao(d = 0.05, conf = 0.95) # p desconhecido -> conservador
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.