Generates random variables from a Dirichlet sampling model.
rvdirichlet(n = 1, alpha)
integer: number of vectors to generate
the parameter vector; may be random
A random vector (rv object) of length n
.
The Dirichlet distribution is a generalization of the Beta distribution.
(If alpha is of length two, rvdirichlet
draws from the Beta model.)
Kerman, J. and Gelman, A. (2007). Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Statistics and Computing 17:3, 235-244.
See also vignette("rv")
.