rdirichlet: Sample from Dirichlet Distribution

Description Usage Arguments Value Examples

View source: R/bootstrap.R

Description

Generate a sample from a dirichlet distribution with parameter alpha

Usage

1
rdirichlet(n = 1, alpha = 1)

Arguments

n

The number of Dirichlet samples to draw.

alpha

(Optional) A vector of parameters for Dirichlet variable. Defaults to 1.

Value

A vector of a random sample from Dirichlet distribution with parameter alpha

Examples

1
rdirichlet(5, sample(1:10))

krisrs1128/mvarVis documentation built on Oct. 13, 2019, 11:14 p.m.