| aas_estima_media | R Documentation |
Estimates the population mean from a simple random sample, with or without replacement, together with its variance and a confidence interval. Corresponds to Eqs. (3.4)-(3.7) (with replacement, AASc) and (3.25)-(3.28.1) (without replacement, AASs) of the course notes.
aas_estima_media(x, N = NULL, reposicao = c("sem", "com"), conf = 0.95, ...)
x |
Numeric vector with the sample data. |
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 mean, its
variance, coefficient of variation, and confidence interval.
Cochran, W.G. (1977). Sampling Techniques, 3rd ed. Wiley. Bolfarine, H.; Bussab, W.O. (2005). Elementos de Amostragem. Edgard Blucher.
aas_estima_media(c(12, 30, 18), N = 3, reposicao = "com")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.