gmdi.fun {GWI} | R Documentation |
The function computes the GDI and MDI indexes for multivariate count data.
gmdi.fun(Y)
Y |
A matrix of count random variables |
gmdi.fun
computes GDI and MDI indexes introduced by Kokonendji and Puig (2018).
Returns:
gdi |
The generalized dispersion index |
mdi |
The marginal dispersion index |
Aboubacar Y. Touré and Célestin C. Kokonendji
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.
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)