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

rdirichlet

Random draws from a Dirichlet distribution


Description

Simulates a sample from a Dirichlet distribution

Usage

rdirichlet(n,par)

Arguments

n

number of simulations required

par

vector of parameters of the Dirichlet distribution

Value

matrix of simulated draws where each row corresponds to a single draw

Author(s)

Jim Albert

Examples

par=c(2,5,4,10)
n=10
rdirichlet(n,par)

LearnBayes

Functions for Learning Bayesian Inference

v2.15.1
GPL (>= 2)
Authors
Jim Albert
Initial release
2018-03-18

We don't support your browser anymore

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