View source: R/algorithms_of_other_authors.R
SimpleGreedy | R Documentation |
Simple algorithm from paper Friedrich et al. (2015) for integer-valued optimal allocation in stratified sampling.
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)
n |
|
Ah |
|
mh |
|
Mh |
|
nh |
|
v0 |
|
Nh |
|
Sh |
|
A vector of optimal allocation sizes.
SimpleGreedy2()
:
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.