zinb.loglik.matrix {zinbwave}R Documentation

Log-likelihood of the zero-inflated 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 (ZINB) model. For each count, the ZINB distribution is parametrized by three parameters: the mean value and the dispersion of the negative binomial distribution, and the probability of the zero component.

Usage

zinb.loglik.matrix(model, x)

Arguments

model

the zinb model

x

the matrix of counts

Value

the matrix of log-likelihood of the model.


[Package zinbwave version 1.2.0 Index]