rdir: Generate random variates from the Dirichlet distribution

View source: R/rdir.r

rdirR Documentation

Generate random variates from the Dirichlet distribution

Description

Generate random variates from the Dirichlet distribution

Usage

rdir(n, alpha)

Arguments

n

Number of random variates to generate (single integer)

alpha

Concentration parameter (vector of positive numbers)

Value

An n by d matrix, where d is the length of alpha.

Examples

rdir(10, 1:4)

pbreheny/breheny documentation built on Feb. 18, 2025, 5:07 a.m.