View source: R/cap02-conceitos.R
| pop_proporcao | R Documentation |
Computes the population proportion P = \sum X_i / N for a binary
(0/1) characteristic (Eq. 2.4) and its variance P(1-P) (Eq. 2.5.1).
pop_proporcao(x, ...)
x |
Numeric or logical vector coded as 0/1 (or |
... |
Ignored (see package overview on tolerated extra arguments). |
A sampling_result object with the population proportion.
Cochran, W.G. (1977). Sampling Techniques, 3rd ed. Wiley.
pop_proporcao(c(1, 0, 0, 1, 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.