Random number generation for the Dirichlet distribution with parameter vector alpha.
Random number generation for the Dirichlet distribution with parameter vector alpha.
rdirichlet(n, alpha)
n |
number of observations |
alpha |
vector of parameters defining Dirichlet distribution @importFrom stats rgamma @return A vector random values sampled from a dirichlet distribution @export |
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.