rdirichlet {bayesm} | R Documentation

## Draw From Dirichlet Distribution

### Description

`rdirichlet` draws from Dirichlet

### Usage

    rdirichlet(alpha)

### Arguments

`alpha` | vector of Dirichlet parms (must be > 0)

### Value

Vector of draws from Dirichlet

### Warning

This routine is a utility routine that does not check the input arguments for proper dimensions and type.

### Author(s)

Peter Rossi, Graduate School of Business, University of Chicago, Peter.Rossi@ChicagoGsb.edu.

### References

For further discussion, see Bayesian Statistics and Marketing by Rossi, Allenby and McCulloch, Chapter 2.
http://gsbwww.uchicago.edu/fac/peter.rossi/research/bsm.html

### Examples

    ##
    set.seed(66)
    rdirichlet(c(rep(3,5)))

[Package bayesm version 2.0-8 Index]