rdirichlet | 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, 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)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.