nb.loglik.matrix: Log-likelihood of the negative binomial model for each entry...

View source: R/newWave.R

nb.loglik.matrixR 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.


fedeago/NewWave documentation built on March 28, 2022, 5:46 a.m.