Description Usage Arguments Details Value

View source: R/heterog.parti.R

This function calculate the heterogeneity of a partition as the sum of the heterogeneity of all classes
obtained with`heterog.Ck`

.

1 | ```
heterog.parti(dist.var, dist.geo, partition, wt, alpha)
``` |

`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 |

`wt` |
a vector of size |

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

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

res a list containing the following results : the Inertia of the partition based on `dist.var`

,
the Inertia of the partition based on `dist.geo`

, the heterogeneity of the partition as defined in description.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.