razao_tamanho_media: Sample size to estimate the population mean via the ratio...

View source: R/cap07-tamanho-guarda-chuva.R

razao_tamanho_mediaR Documentation

Sample size to estimate the population mean via the ratio estimator

Description

Analogous to razao_tamanho_R() but for the population mean (Eq. 7.44 of the course notes). Unlike razao_tamanho_R(), this does not require X_barra.

Usage

razao_tamanho_media(
  sr2,
  N,
  d,
  conf = 0.95,
  arredondar = c("cima", "proximo"),
  ...
)

Arguments

sr2

Variance of the ratio estimator (population value, or a pilot-sample estimate from razao_variancia_piloto()).

N

Population size.

d

Tolerable margin of error.

conf

Confidence level, default 0.95.

arredondar

Either "cima" (default) or "proximo".

...

Ignored (see package overview on tolerated extra arguments).

Value

A sampling_result object with the required sample size.

Examples

razao_tamanho_media(sr2 = 2.2462, N = 1000, d = 0.75)

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