Learn R Programming

GWI (version 1.0.2)

dib.fun: Function for DIb

Description

The function computes the binomial dispersion index for a given number of trials \(N\in \{1,2,\ldots\}\).

Usage

dib.fun(X, N)

Arguments

X

A count random variable

N

The number of trials of binomial distribution

Value

Returns

dib

The binomial dispersion index

Details

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

References

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.

Weiss, C.H. (2018). An Introduction to Discrete-Valued Times Series. Wiley, Hoboken NJ.

Examples

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

Run the code above in your browser using DataLab