data.alloc: Allocate the sample to strata found from data

View source: R/data.alloc.R

data.allocR Documentation

Allocate the sample to strata found from data

Description

Calculates the stratum sample sizes (nh) for a fixed total sample size (n) directly from the data.

Usage

data.alloc(data, my_env)

Arguments

data

Input dataset.

my_env

Environment object.

Value

...

Uses OSB to compute stratum weights (Wh), sample variances (Vh from data), and Neyman allocations (nh). Builds the summary table once at the end.


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