powered by
rdirichlet draws from Dirichlet
rdirichlet
rdirichlet(alpha)
Vector of draws from Dirichlet
vector of Dirichlet parms (must be > 0)
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.
set.seed(66) rdirichlet(c(rep(3,5)))
Run the code above in your browser using DataLab