amostra_estimadores: Sample-based estimators (mean, variance, proportion)

View source: R/cap02-conceitos.R

amostra_estimadoresR Documentation

Sample-based estimators (mean, variance, proportion)

Description

Computes the sample mean (Eq. 2.8), the unbiased sample variance (Eq. 2.10, divisor n-1), and, when the data are binary, the sample proportion (Eq. 2.9) – all from a single call. This function is used internally as a building block by most other functions in the package.

Usage

amostra_estimadores(x, ...)

Arguments

x

Numeric vector with the sample data.

...

Ignored (see package overview on tolerated extra arguments).

Value

A sampling_result object with the requested sample estimators.

References

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

Examples

amostra_estimadores(c(12, 30, 18))
amostra_estimadores(c(1, 0, 1, 1, 0))

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