Learn R Programming

GWI (version 1.0.2)

dinb.fun: Function for DInb

Description

The function computes the negative binomial dispersion index for a given dispersion parameter \(l\in (0,\infty)\).

Usage

dinb.fun(X, l)

Arguments

X

A count random variable

l

The dispersion parameter of negative binomial distribution

Value

Returns

dinb

The negative binomial dispersion index

Details

dinb.fun computes the dispersion index with respect to negative binomial distribution. See Tour<U+00E9> et al. (2020) and Abid et al. (2021) for more details.

References

Abid, R.,Kokonendji, C.C. and Masmoudi, A. (2021). On Poisson-exponential-Tweedie models for ultra-overdispersed count data, AStA Advances in Statistical Analysis 105, 1-23.

Tour<U+00E9>, A.Y., Dossou-Gb<U+00E9>t<U+00E9>, S. and Kokonendji, C.C. (2020). Asymptotic normality of the test statistics for relative dispersion and relative variation indexes, Journal of Applied Statistics 47, 2479-2491.

Examples

Run this code
# NOT RUN {
X<-c(12,9,0,8,5,7,6,5,3,4,9,4)
dinb.fun(X,12)
Y<-c(0,6,1,3,4,2,5)
dinb.fun(Y,7)
# }

Run the code above in your browser using DataLab