ddirichlet: Dirichlet distribution

Description Usage Arguments Value Examples

Description

Density of Dirichlet distribution

Usage

1
ddirichlet(x, gam, log = FALSE)

Arguments

x

random variable in the d-dimensional simplex

gam

a length K concentration parameter

log

return the log-probability instead?

Value

the density

Examples

1
2
3
g <- rep(2,5)
p <- rdirichlet(1, g) ## a length-5 probability vector
ddirichlet(p, g)

SBMSplitMerge documentation built on July 1, 2020, 5:23 p.m.