rvdirichlet {rv} | R Documentation |
Generates random variables from a Dirichlet sampling model.
rvdirichlet(n=1, alpha)
n |
integer: number of vectors to generate |
alpha |
the parameter vector |
The Dirichlet distribution is a generalization of the Beta distribution.
(If alpha is of length two, rvdirichlet
draws from the Beta model.)
A random vector (rv object) of length n
.
Jouni Kerman kerman@stat.columbia.edu http://www.stat.columbia.edu/~kerman
Kerman, Jouni and Gelman, Andrew. Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Technical report, Columbia University, New York.
#