rvdirichlet {rv}R Documentation

Generate Random Variables from a Dirichlet Sampling Model

Description

Generates random variables from a Dirichlet sampling model.

Usage

  rvdirichlet(n=1, alpha)

Arguments

n integer: number of vectors to generate
alpha the parameter vector

Details

The Dirichlet distribution is a generalization of the Beta distribution. (If alpha is of length two, rvdirichlet draws from the Beta model.)

Value

A random vector (rv object) of length n.

Author(s)

Jouni Kerman kerman@stat.columbia.edu http://www.stat.columbia.edu/~kerman

References

Kerman, Jouni and Gelman, Andrew. Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Technical report, Columbia University, New York.

Examples

  #

[Package rv version 0.911 Index]