rdirichlet | R Documentation |
Generate a random vector from the k-dimensional symmetric Dirichlet distribution with concentration parameter alpha
rdirichlet(k, alpha = 1)
k |
Length of the vector |
alpha |
Concentration parameters |
a numeric vector
qvals <- rdirichlet(16, 1)
sum(qvals)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.