rdirichlet {RprobitB}R Documentation

Draw from Dirichlet distribution

Description

Function to draw from a Dirichlet distribution.

Usage

rdirichlet(delta)

Arguments

delta

A vector, the concentration parameter.

Value

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

Examples

rdirichlet(delta = 1:3)

[Package RprobitB version 1.1.4 Index]