Description Usage Arguments Value Author(s) Examples
This function can generate random numbers from a dirichlet distribution.
1 | rdirichlet(n,a)
|
n |
the number of random numbers to be generated |
a |
shape parameters of the dirichlet distribution |
The function returns random numbers from a dirichlet distribution.
Code is taken from Greg's Miscellaneous Functions (gregmisc). His code was based on code posted by Ben Bolker to R-News on Fri Dec 15 2000.
1 | rdirichlet(1,c(3,3,3))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.