Description Usage Arguments Value Examples
This function draws samples from a dirichlet distriution with hyperpars m.
1 | rdirichlet(par, m = 1)
|
par |
Vector of inputs (Alpha+ number of obs in each group) |
m=1 |
number of vectors to generate |
Vector of probabilities, of same length as par
.
The values sum to 1.
1 2 | rdirichlet(c(1,1,1))
rdirichlet(c(0.5,20,0.000000001))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.