ldmult | R Documentation |
Return the logarithm of the multinomial density function.
ldmult(y, theta)
y |
A vector of multinomial counts. |
theta |
A vector of multinomial probabilities. May have same number of
components as or one fewer component than |
This function is called by multmixEM
.
ldmult
returns the logarithm of the multinomial density
with parameter theta
, evaluated at y
.
multmixEM
y <- c(2, 2, 10) theta <- c(0.2, 0.3, 0.5) ldmult(y, theta)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.