distr.alloc: Allocate the sample to strata found from a distribution

View source: R/distr.alloc.R

distr.allocR Documentation

Allocate the sample to strata found from a distribution

Description

Calculates the stratum sample sizes (nh) for a fixed total sample size (n) from an assumed distribution.

Usage

distr.alloc(my_env)

Arguments

my_env

Environment carrying all precomputed values and constants.

Details

Uses OSB to compute stratum weights (Wh), variances (Vh), Neyman allocations (nh), and related totals under a *given* population distribution. Integrations are cached per stratum; the output data.frame is built once at the end (faster).

Value

Populates my_env$output, my_env$out, and totals (WhTot, NhTot, etc.)


stratifyR documentation built on Nov. 13, 2026, 9:06 a.m.