| newloglik | 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.
newloglik(model, x, ...) ## S4 method for signature 'newmodel,matrix' newloglik(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.
model = newmodel,x = matrix: return the log-likelihood of the nb model.
m <- newmodel(n=5, J=10) x <- newSim(m) newloglik(m, x$counts)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.