rdirichlet {oeli} | R Documentation |
This function draws from a Dirichlet distribution.
rdirichlet(n = 1, concentration)
n |
An |
concentration |
The non-negative concentration vector of length |
If n = 1
a vector
of length p
, else
a matrix
of dimension n
times p
with samples as rows.
rdirichlet(concentration = 1:3)
rdirichlet(n = 4, concentration = 1:2)