Description Usage Arguments Value
Multiplicities N_1, ..., N_n, i.e. element j is sampled N_j times index = numbers of sampled elements.
Author: Hans-Rudolf Kuensch, Date: 21 Apr 2010. Modified by Sylvain Robert (added unif as argument and some names)
1 | bal.sample(w, R = length(w), unif = runif(1))
|
w |
= probabilities (must sum to one !) |
R |
= sample size |
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.