powered by
Simulates from a Dirichlet distribution
rdirichlet(n=1, alpha)
The number of samples.
The shape parameters, need to be positive.
Return an n x length(alpha) matrix where each row is drawn from a Dirichlet.
dirmult
# NOT RUN { rdirichlet(n=100, alpha=rep(1,10)) # }
Run the code above in your browser using DataLab