rdirichlet function

Draw from Dirichlet distribution

Draw from Dirichlet distribution

Function to draw from a Dirichlet distribution.

rdirichlet(delta)

Arguments

  • delta: A vector, the concentration parameter.

Returns

A vector, the sample from the Dirichlet distribution of the same length as delta.

Examples

rdirichlet(delta = 1:3)