Description Usage Arguments Value Author(s) References See Also Examples
This is a random generator for Dirichlet D(a1,...,ad) distributions, based on the normalisation of Gamma gamma(ai) random variables.
1 | rdirichlet(n, shape)
|
n |
Number of generations requested |
shape |
Vector of ai's |
A (n,length(shape)) matrix, with one simulated vector per row.
Christian P. Robert and George Casella
Used in Chapter 7 EnteR Monte Carlo Statistical Methods
rgamma
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.