powered by
PMF of Dirichlet-multinomial distribution
ddirmult(x, alpha, lg = FALSE)
The vector of counts.
The vector of concentration parameters.
A logical. Should we log the density (TRUE) or not (FALSE)?
TRUE
FALSE
David Gerard
ddirmult(c(1, 2, 3), c(1, 1, 1)) ddirmult(c(2, 2, 2), c(1, 1, 1))
Run the code above in your browser using DataLab