distr.alloc: To calculate the stratum sample sizes (nh) for a fixed sample...

View source: R/distr.alloc.R

distr.allocR Documentation

To calculate the stratum sample sizes (nh) for a fixed sample size (n) based on the hypothetical distribution of the data

Description

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).

Usage

distr.alloc(my_env)

Arguments

my_env

Environment carrying all precomputed values and constants.

Value

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


stratifyR documentation built on Sept. 10, 2026, 5:07 p.m.