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

Description Usage Arguments Value

View source: R/newWave.R

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

1
nb.loglik.matrix(model, x)

Arguments

model

the newmodel

x

the matrix of counts

Value

the matrix of log-likelihood of the model.


NewWave documentation built on Dec. 26, 2020, 6 p.m.