Skip to contents

Dirichlet distribution

Usage

rdirichlet(n, alpha)

Arguments

n

total number of draws

alpha

vector controlling the concentration of simplex

Details

Implementation of random sampling from a Dirichlet distribution