rdirichlet | R Documentation |
Draw from a Dirichlet distribution given a vector of shape parameters. The number of observations is inferred from the length of the shape vector.
rdirichlet(shape = rep(1, 3))
shape |
Vector of shape parameters. |
rgamma()
for additional details.
Other distributions:
rbetabinom()
coiaf:::rdirichlet(c(1, 1, 1))
coiaf:::rdirichlet(c(1, 3, 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.