heterog.Ck: heterogeneity of a class C_k obtained with the method...

Description Usage Arguments Details Value

Description

This function calculate the heterogeneity of a class C_k obtained with the method hclust.geo.H. heterogeneity= alpha I_intra_var + (1-alpha) I_intra_geo.

Usage

1
heterog.Ck(dist.var, dist.geo, partition, classe, wt, alpha)

Arguments

dist.var

a square symetric matrix with the distances between individuals measured on the variables.

dist.geo

a square symetric matrix with the geographical distances between individuals.

partition

a vector of size n giving the belonging of each individuals to each class of individuals.

classe

the number of the class for which we want the heterogeneity.

wt

a vector of size n whose values indicate weights of individuals on quantitative variables

alpha

a real between 0 and 1 to fit the global criterion to optimize

Details

Note that in the calcul of Inertia, the two matrices of distances are normalized (divided by their own maximum).

Value

res a list containing the following results : the Inertia of the class based on dist.var, the Inertia of the class based on dist.geo, the heterogeneity of the class as defined in description.



Search within the ClustGeo package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.