dnb2 {mmlcr}R Documentation

Density for negative binomial, used in mmlcr

Description

The density for the negative binomial function, in a form suitable for the mmlcrlike function.

Usage

dnb2(y, mu, th)

Arguments

y Observations
mu The mean of the distribution
th The parameter theta.

Details

The variance function of the distribution is μ +μ^2/theta.

The density is

f(y) = [Gamma(th + y) mu^y theta^th] / [Gamma(th) y! (mu + th)^(mu + th)].

Value

The density.

References

Venables, W. N. and Ripley, B. D. 2002 Modern Applied Statistics with S, Springer Verlag.

See Also

mmlcr, mmlcrlike


[Package mmlcr version 1.3.5 Index]