frame_allocation: Cost-aware allocation across strata

View source: R/sampling.R

frame_allocationR Documentation

Cost-aware allocation across strata

Description

Classical optimum allocation with a cost per unit in each stratum (Cochran 1977, Section 5.5): minimum cost for a target variance of the estimated total, or minimum variance for a budget. For two frames with an overlap use dual_frame_allocation() instead.

Usage

frame_allocation(strata, target_variance = NULL, budget = NULL)

Arguments

strata

Data frame with columns size (population units), sd (standard deviation of the study variable) and cost (cost per unit, interview plus expected access), and optionally stratum with names.

target_variance

Target variance of the estimated total (give this or budget).

budget

Total cost allowed.

Value

The strata with a column n, plus attributes cost, variance and bounded (whether ⁠2 <= n_h <= N_h⁠ was active), of class fieldopt_allocation.

Examples

strata <- data.frame(
  stratum = c("list", "area"), size = c(2000, 800),
  sd = c(12, 30), cost = c(40, 180)
)
frame_allocation(strata, target_variance = 4e6)
frame_allocation(strata, budget = 20000)

fieldopt documentation built on Oct. 22, 2026, 1:07 a.m.