Description Usage Arguments Details Value Author(s) See Also Examples
Random generation from the Dirichlet distribution.
1 | rdirichlet( n = 10, alpha = c( 1, 1 ) )
|
n |
number of observations. |
alpha |
vector of shape parameters. |
The Dirichlet distribution is the multidimensional generalization of the beta distribution.
A matrix with n
rows, each containing a single Dirichlet random deviate.
Reza Mohammadi a.mohammadi@uva.nl
1 2 3 | draws = rdirichlet( n = 500, alpha = c( 1, 1, 1 ) )
boxplot( draws )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.