Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rdirichlet

Random number generation for the Dirichlet distribution with parameter vector alpha.


Description

Random number generation for the Dirichlet distribution with parameter vector alpha.

Usage

rdirichlet(n, alpha)

Arguments

n

number of observations

alpha

vector of parameters defining Dirichlet distribution

@importFrom stats rgamma @return A vector random values sampled from a dirichlet distribution @export


dampack

Decision-Analytic Modeling Package

v1.0.0
GPL-3
Authors
Fernando Alarid-Escudero [aut], Greg Knowlton [aut, cre], Caleb Easterly [aut], Eva Enns [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.