Draw From Dirichlet Distribution
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, Anderson School, UCLA, perossichi@gmail.com.
For further discussion, see Chapter 2, Bayesian Statistics and Marketing by Rossi, Allenby, and McCulloch.
http://www.perossi.org/home/bsm-1
set.seed(66) rdirichlet(c(rep(3,5)))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.