Learn R Programming

BGSIMD (version 1.0)

rdirichlet: Random Sampling from the Dirichlet Distribution

Description

The function outputs a random sample from the Dirichlet distribution.

Usage

rdirichlet(n, alpha)

Arguments

n
Sample size
alpha
Parameter vector

See Also

rbeta

Examples

Run this code
x <- rdirichlet(10, c(1,2,3) )

Run the code above in your browser using DataLab