Contiguity-constrained agglomeration (clusters merge only when contiguous; the
linkage runs over all member pairs, or over the contiguity edges between them for
order = "first") builds a spanning tree from the shortest contiguity edge of
each merge; the tree is cut k - 1 times at the edge of largest reduction in the
sum of squared deviations. Single, complete and Ward linkage use squared Euclidean
distances and average linkage Euclidean distances (the GeoDa convention).
Arguments
- X
Attribute matrix (units in rows).
- adjacency
0/1 contiguity matrix or list of 1-based neighbour vectors.
- k
Number of regions.
- linkage
"single", "complete", "average" or "ward".
- order
"full" or "first" (first-order needs single linkage).
- min_size
Minimum units per region.
- weights
Per-unit weights for
min_weight.- min_weight
Minimum summed weight per region.
