powered by
Generate random draws from a Dirichlet distribution
rdir(n, alpha)
The number of observations.
A vector of scale parameters, such that \(E[p_j] = \alpha_j/\sum_i\alpha_i\).
vector
An n column matrix containing the observations.
n
# NOT RUN { rdir(3,rep(1,6)) # }
Run the code above in your browser using DataLab