nb.loglik.matrix {NewWave}R Documentation

Log-likelihood of the negative binomial model for each entry in the matrix of counts

Description

Given a matrix of counts, this function computes the log-probabilities of the counts under a zero-inflated negative binomial (NB) model. For each count, the NB distribution is parametrized by two parameters: the mean value and the dispersion of the negative binomial distribution.

Usage

nb.loglik.matrix(model, x)

Arguments

model

the newmodel

x

the matrix of counts

Value

the matrix of log-likelihood of the model.


[Package NewWave version 1.0.2 Index]