ddirichlet {SBMSplitMerge} | R Documentation |
Dirichlet distribution
Description
Density of Dirichlet distribution
Usage
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
g <- rep(2,5)
p <- rdirichlet(1, g) ## a length-5 probability vector
ddirichlet(p, g)
[Package SBMSplitMerge version 1.1.1 Index]