rdirichlet: Sampling from Dirichlet distribution.

Description Usage Arguments Value Author(s) Examples

Description

Generate random deviates from the Dirichlet distribution.

Usage

1
  rdirichlet(n, alpha)

Arguments

n

Number of random vectors to generate.

alpha

Vector containing shape parameters.

Value

returns a matrix with n rows, each containing a single Dirichlet random deviate.

Author(s)

Code original posted by Ben Bolker to R-News on Fri Dec 15 2000. See http://www.r-project.org/nocvs/mail/r-help/2000/3865.html. Ben attributed the code to Ian Wilson <i.wilson

Examples

1
rdirichlet(20, c(1,1,1)

rjbgoudie/parental documentation built on May 27, 2019, 9:11 a.m.