rdirichlet: Dirichlet distribution

View source: R/probability.R

rdirichletR Documentation

Dirichlet distribution

Description

Draw from a Dirichlet distribution given a vector of shape parameters. The number of observations is inferred from the length of the shape vector.

Usage

rdirichlet(shape = rep(1, 3))

Arguments

shape

Vector of shape parameters.

See Also

rgamma() for additional details.

Other distributions: rbetabinom()

Examples

coiaf:::rdirichlet(c(1, 1, 1))
coiaf:::rdirichlet(c(1, 3, 2))

bailey-lab/coiaf documentation built on April 26, 2023, 6:32 p.m.