powered by
Density of Dirichlet distribution
ddirichlet(x, gam, log = FALSE)
random variable in the d-dimensional simplex
a length K concentration parameter
return the log-probability instead?
the density
# NOT RUN { g <- rep(2,5) p <- rdirichlet(1, g) ## a length-5 probability vector ddirichlet(p, g) # }
Run the code above in your browser using DataLab