if pij represents the i class frequency of the j variable, the Nei diversity indice is:
The indice for all of variables will be sum of indices for each variable