powered by
Generate a random vector from the k-dimensional symmetric Dirichlet distribution with concentration parameter alpha
rdirichlet(k, alpha = 1)
a numeric vector
Length of the vector
Concentration parameters
qvals <- rdirichlet(16, 1) sum(qvals)
Run the code above in your browser using DataLab