Description Usage Arguments Value
Multinomial resampling
1 | MultinomialR(p, n = length(p))
|
p |
Vector of probabilities, internally renormalized to sum to 1 |
n |
Number of samples to take |
Vector of length n containing i.i.d. samples taking values in 1:length(p) with probabilities proportional to p
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.