rdirichlet {lazy.stat} | R Documentation |
Dirichlet Random Numbers
rdirichlet(n, alpha)
n |
# of random numbers to be generated |
alpha |
vector of parameters of length(alpha) >= 2. |
Beta( a, b ) is equivalent of Dirichlet( c( a, b ) ).
vector of length length(alpha)
set.seed(1701) x <- rdirichlet( 10000, c(3,4,2) ) mandd(x)