SimpleGreedy: Integer-valued Optimal Univariate Allocation Under...

View source: R/algorithms_of_other_authors.R

SimpleGreedyR Documentation

Integer-valued Optimal Univariate Allocation Under Constraints for Stratified Sampling

Description

[Experimental]

Simple algorithm from paper Friedrich et al. (2015) for integer-valued optimal allocation in stratified sampling.

Usage

SimpleGreedy(
  n,
  Ah,
  mh = rep(1, length(Ah)),
  Mh = rep(Inf, length(Ah)),
  nh = mh
)

SimpleGreedy2(v0, Nh, Sh, mh = rep(1, length(Nh)), Mh = Nh, nh = mh)

Arguments

n
  • target sample size for allocation.

Ah
  • population strata sizes * standard deviations of a given variable in strata.

mh
  • lower constraints for sample sizes in strata.

Mh
  • upper constraints for sample sizes in strata.

nh
  • initial allocation (if not given then nh=mh).

v0
  • upper limit for value of variance which must be attained for computed optimal allocation.

Nh
  • population strata sizes.

Sh
  • standard deviations of a given variable in strata.

Value

A vector of optimal allocation sizes.

Functions

  • SimpleGreedy2():

References

Friedrich, U., Münnich, R., de Vries, S. and Wagner, M. (2015) Fast integer-valued algorithms for optimal allocations under constraints in stratified sampling, Computational Statistics and Data Analysis, 92, pp. 1–12. https://www.sciencedirect.com/science/article/pii/S0167947315001413


stratallo documentation built on Nov. 27, 2023, 1:07 a.m.