rdirichlet {MCMCprecision}R Documentation

Random Sample from Dirichlet Distribution

Description

Random generation from the Dirichlet distribution.

Usage

rdirichlet(n, a)

Arguments

n

number of samples

a

vector or matrix of shape parameters

See Also

fit_dirichlet

Examples

rdirichlet(2, c(1,5,3,8))


[Package MCMCprecision version 0.4.0 Index]