rdirichlet {causaloptim} | 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)