Return the logarithm of the multinomial density function.
Usage
ldmult(y, theta)
Value
ldmult returns the logarithm of the multinomial density
with parameter theta, evaluated at y.
Arguments
y
A vector of multinomial counts.
theta
A vector of multinomial probabilities. May have same number of
components as or one fewer component than y. In the latter case,
an extra component is appended so that theta sums to one.