powered by
Compute log of density of multinomial
ldmultinom(x, prob)
vector of multinomial counts
vector of bin probabilities
log of density of multinomial
# NOT RUN { p <- rep(0.2, 5) x <- rmultinom(1, 10, p) dmultinom(x, prob=p, log=TRUE) ldmultinom(x, p) # }
Run the code above in your browser using DataLab