Description Usage Arguments Details Value Examples
The log likelihood of a multinomial density with data, x, size and prob parameters.
1 | likmultinom(x, size = NULL, prob, log = TRUE)
|
x |
vector of length K of integers in |
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. |
log |
logical; if TRUE, log probabilities are computed. |
The log likelihood is the log of a function of parameters given the data.
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.
1 2 | likmultinom(x = rmultinom(n = 2, size = 3, prob = .4),
size = 3, prob = .4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.