Description Usage Arguments Value
Same as bal.sample but permute indices to reduce the number of discontinuities in local resampling.
Draw a balanced sample of size n from 1,...,n with probabilities w such that agreement with 1:n is maximal
Multiplicities N_1, ..., N_n, i.e. element j is sampled N_j times. index = numbers of sampled elements
Author: Hans-Rudolf Kuensch
1 | bal_sample_ordered(w, unif = runif(1))
|
w |
= probabilities (must sum to one !) |
unif |
= uniform (pass if deterministic behaviour wished) |
list(N, index)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.