Skip to contents

Random number generation for the Dirichlet distribution with parameter vector alpha.

Usage

rdirichlet(n, alpha)

Arguments

n

number of observations

alpha

vector of parameters defining Dirichlet distribution

Value

A vector random values sampled from a dirichlet distribution