Skip to contents

Generate a random vector from the k-dimensional symmetric Dirichlet distribution with concentration parameter alpha

Usage

rdirichlet(k, alpha = 1)

Arguments

k

Length of the vector

alpha

Concentration parameters

Value

a numeric vector

Examples

qvals <- rdirichlet(16, 1)
sum(qvals)
#> [1] 1