estr_estima_proporcao: Estimate the population proportion under stratified sampling

View source: R/cap04-estratificada-estimacao.R

estr_estima_proporcaoR Documentation

Estimate the population proportion under stratified sampling

Description

Estimates a population proportion from data collected under stratified random sampling, given per-stratum sample proportions and sizes (Eqs. 4.9-4.11 of the course notes).

Usage

estr_estima_proporcao(Nk, pk, nk, conf = 0.95, ...)

Arguments

Nk

Numeric vector with the population size of each stratum.

pk

Numeric vector with the sample proportion of each stratum.

nk

Numeric vector with the sample size of each stratum.

conf

Confidence level, default 0.95.

...

Ignored (see package overview on tolerated extra arguments).

Value

A sampling_result object with the estimated stratified proportion, its variance, and confidence interval.

References

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

Examples

estr_estima_proporcao(Nk = c(1540, 770, 385), pk = c(0.75, 0.50, 0.25),
                       nk = c(161, 81, 40))

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