The log likelihood of a multinomial density with data, x, size and prob parameters.
likmultinom(x, size = NULL, prob, log = TRUE)
vector of length 0:size
.
integer, say dmultinom
, it defaults to sum(x)
.
numeric non-negative vector of length
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.
# NOT RUN {
likmultinom(x = rmultinom(n = 2, size = 3, prob = .4),
size = 3, prob = .4)
# }
Run the code above in your browser using DataLab