computeObservationalWeights: Observational weights of the zero-inflated negative binomial...

Description Usage Arguments Value

View source: R/zinbwave.R

Description

Given a matrix of counts, this function computes the observational weights 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

1

Arguments

model

the zinb model

x

the matrix of counts

Value

the matrix of observational weights computed from the model.


zinbwave documentation built on Nov. 8, 2020, 8:11 p.m.