razao_tamanho_R: Sample size to estimate the population ratio R

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

razao_tamanho_RR Documentation

Sample size to estimate the population ratio R

Description

Computes the sample size needed to estimate the population ratio R with a given margin of error (Eq. 7.41 of the course notes).

Usage

razao_tamanho_R(
  sr2,
  N,
  X_barra,
  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.

X_barra

Population mean of the auxiliary variable (X/N).

d

Tolerable margin of error.

conf

Confidence level, default 0.95.

arredondar

Either "cima" (default) or "proximo" – see aas_tamanho_media().

...

Ignored (see package overview on tolerated extra arguments).

Value

A sampling_result object with the required sample size.

Examples

razao_tamanho_R(sr2 = 7.7853, N = 1500, X_barra = 10, d = 0.05)

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