| aas_estima_proporcao | R Documentation |
Estimates a population proportion from a simple random sample, with or without replacement. Corresponds to Eqs. (3.16)-(3.21) (AASc) and (3.39)-(3.44) (AASs) of the course notes.
aas_estima_proporcao(
x,
N = NULL,
reposicao = c("sem", "com"),
conf = 0.95,
...
)
x |
Numeric or logical vector coded 0/1 (or |
N |
Optional population size. If |
reposicao |
Either |
conf |
Confidence level, default |
... |
Ignored (see package overview on tolerated extra arguments). |
A sampling_result object with the estimated proportion, its
variance, and confidence interval.
Cochran, W.G. (1977). Sampling Techniques, 3rd ed. Wiley.
aas_estima_proporcao(c(1, 0, 1, 1, 0, 1, 0, 0), N = 500)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.