pop_proporcao: Population proportion

View source: R/cap02-conceitos.R

pop_proporcaoR Documentation

Population proportion

Description

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).

Usage

pop_proporcao(x, ...)

Arguments

x

Numeric or logical vector coded as 0/1 (or FALSE/TRUE).

...

Ignored (see package overview on tolerated extra arguments).

Value

A sampling_result object with the population proportion.

References

Cochran, W.G. (1977). Sampling Techniques, 3rd ed. Wiley.

Examples

pop_proporcao(c(1, 0, 0, 1, 1))

sampleone documentation built on Oct. 13, 2026, 5:07 p.m.