rdirichlet {dampack} | R Documentation |
Random number generation for the Dirichlet distribution with parameter vector alpha.
Description
Random number generation for the Dirichlet distribution with parameter vector alpha.
Usage
rdirichlet(n, alpha)
Arguments
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 |
[Package dampack version 1.0.1 Index]