rdirichlet {bayesm} | R Documentation |
Draw From Dirichlet Distribution
Description
rdirichlet
draws from Dirichlet
Usage
rdirichlet(alpha)
Arguments
alpha |
vector of Dirichlet parms (must be > 0) |
Value
Vector of draws from Dirichlet
Warning
This routine is a utility routine that does not check the input arguments for proper dimensions and type.
Author(s)
Peter Rossi, Anderson School, UCLA, perossichi@gmail.com.
References
For further discussion, see Chapter 2, Bayesian Statistics and Marketing by Rossi, Allenby, and McCulloch.
Examples
set.seed(66)
rdirichlet(c(rep(3,5)))
[Package bayesm version 3.1-6 Index]