rdirichlet {oeli} | R Documentation |
Draw from Dirichlet distribution
Description
This function draws from a Dirichlet distribution.
Usage
rdirichlet(n = 1, concentration)
Arguments
n |
An |
concentration |
The non-negative concentration vector of length |
Value
If n = 1
a vector
of length p
, else
a matrix
of dimension n
times p
with samples as rows.
Examples
rdirichlet(concentration = 1:3)
rdirichlet(n = 4, concentration = 1:2)
[Package oeli version 0.5.2 Index]