zinbOptimizeDispersion | R Documentation |
(ZINB) model. 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.
zinbOptimizeDispersion(mu, logitPi, Y, n)
mu |
the vector mean of the negative binomial |
logitPi |
the vector of logit of the probabilities of the zero component |
Y |
the vector of counts |
n |
length of the returned vector |
n <- 10
mu <- seq(10,50,length.out=n)
logitPi <- rnorm(1)
zeta <- rnorm(1)
Y <- rnbinom(n=n, size=exp(zeta), mu=mu)
learn2count:::zinbOptimizeDispersion ( mu, logitPi,Y,n)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.