Learn R Programming

MCMCprecision (version 0.4.2)

rdirichlet: 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

Run this code
rdirichlet(2, c(1,5,3,8))

Run the code above in your browser using DataLab