Learn R Programming

GWI (version 1.0.2)

gmdi.fun: Function for GDI and MDI

Description

The function computes the GDI and MDI indexes for multivariate count data.

Usage

gmdi.fun(Y)

Arguments

Y

A matrix of count random variables

Value

Returns:

gdi

The generalized dispersion index

mdi

The marginal dispersion index

Details

gmdi.fun computes GDI and MDI indexes introduced by Kokonendji and Puig (2018).

References

Kokonendji, C.C. and Puig, P. (2018). Fisher dispersion index for multivariate count distributions : A review and a new proposal, Journal of Multivariate Analysis 165, 180-193.

Examples

Run this code
# NOT RUN {
Y<-cbind(c(1,2,3,4,5,6,7,8),c(1,2,3,4,5,6,7,8))
gmdi.fun(Y)
Z<-cbind(c(1,2,3,4,5,6,7,8),c(1,2,3,4,5,6,7,8),c(1,2,3,4,5,6,7,8),c(1,2,3,4,5,6,7,8))
gmdi.fun(Z)
# }

Run the code above in your browser using DataLab