loglik | R Documentation |
Given a statistical model and some data, this function computes the log-likelihood of the model given the data, i.e., the log-probability of the data under the model.
loglik(model, x, ...)
## S4 method for signature 'ZinbModel,matrix'
loglik(model, x)
model |
an object that describes a statistical model. |
x |
an object that describes data. |
... |
additional arguments. |
The log-likelihood of the model given the data.
loglik(model = ZinbModel, x = matrix)
: return the log-likelihood of the ZINB model.
m <- zinbModel(n=5, J=10)
x <- zinbSim(m)
loglik(m, x$counts)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.