Description Usage Arguments Value Examples
Density of Dirichlet distribution
1 | ddirichlet(x, gam, log = FALSE)
|
x |
random variable in the d-dimensional simplex |
gam |
a length K concentration parameter |
log |
return the log-probability instead? |
the density
1 2 3 | g <- rep(2,5)
p <- rdirichlet(1, g) ## a length-5 probability vector
ddirichlet(p, g)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.