rdirichlet {bayesm} | R Documentation |
rdirichlet
draws from Dirichlet
rdirichlet(alpha)
alpha |
vector of Dirichlet parms (must be > 0) |
Vector of draws from Dirichlet
This routine is a utility routine that does not check the input arguments for proper dimensions and type.
Peter Rossi, Graduate School of Business, University of Chicago, Peter.Rossi@ChicagoGsb.edu.
For further discussion, see Bayesian Statistics and Marketing
by Rossi, Allenby and McCulloch, Chapter 2.
http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html
## set.seed(66) rdirichlet(c(rep(3,5)))