Random draws from a Dirichlet distribution
Simulates a sample from a Dirichlet distribution
rdirichlet(n,par)
n |
number of simulations required |
par |
vector of parameters of the Dirichlet distribution |
matrix of simulated draws where each row corresponds to a single draw
Jim Albert
par=c(2,5,4,10) n=10 rdirichlet(n,par)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.