rdirichlet: Random Sampling from the Dirichlet Distribution

Description Usage Arguments Author(s) See Also Examples

Description

The function outputs a random sample from the Dirichlet distribution.

Usage

1
rdirichlet(n, alpha)

Arguments

n

Sample size

alpha

Parameter vector

Author(s)

Code is taken from Greg's Miscellaneous Functions (gregmisc). His code was based on code posted by Ben Bolker to R-News on 15 Dec 2000.

See Also

rbeta

Examples

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

Example output



BGSIMD documentation built on May 29, 2017, 6:10 p.m.