cong1_tamanho_proporcao: Sample size (number of clusters) to estimate a proportion...

View source: R/cap06-conglomerados-1etapa.R

cong1_tamanho_proporcaoR Documentation

Sample size (number of clusters) to estimate a proportion (one-stage cluster sampling)

Description

Analogous to cong1_tamanho_media() but for a population proportion (Eq. 6.11 of the course notes).

Usage

cong1_tamanho_proporcao(
  Nc,
  sigmacp2,
  M_barra,
  d,
  conf = 0.95,
  arredondar = c("cima", "proximo"),
  ...
)

Arguments

Nc

Total number of clusters in the population.

sigmacp2

Between-cluster population variance for the proportion (or its estimate).

M_barra

Average number of elements per cluster.

d

Tolerable margin of error (in the original units of the variable, not per-cluster).

conf

Confidence level, default 0.95.

arredondar

Either "cima" (default) or "proximo" – see aas_tamanho_media(). Example 6.1(c) of the course notes uses "proximo" (41.87 rounds to 42, same result either way here).

...

Ignored (see package overview on tolerated extra arguments).

Value

A sampling_result object with the required number of clusters.

Examples

cong1_tamanho_proporcao(Nc = 373, sigmacp2 = 0.91785840, M_barra = 8018/373, d = 0.013)

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