likmultinom.Rd
The log likelihood of a multinomial density with data, x, size and prob parameters.
likmultinom(size = NULL, prob, x, log = FALSE)
size | integer, say \(N\), specifying the total number
of objects that are put into \(K\) boxes in the typical multinomial
experiment. For |
---|---|
prob | numeric non-negative vector of length \(K\), specifying the probability for the \(K\) classes; is internally normalized to sum 1. Infinite and missing values are not allowed. |
x | vector of length \(K\) of integers in |
log | logical; if TRUE, log probabilities are computed. |
A numeric scalar for the log likelihood of the multinomial density given the data where size and prob can be held constant or if vector were given vector will be returned.
The log likelihood is the log of a function of parameters given the data.
#> [1] 1