hclustgeo.uniq for several parameters alpha.

Description

Perform hclustgeo.uniq for several parameter alpha.

Usage

1
hclustgeo(data, D.geo, alpha)

Arguments

data

a data frame with n rows and p colums where n observations are described by p numerical variables.

D.geo

a matrix of size n by n containing geographical distances between observations

alpha

a vector containing all the values of the parameter alpha for which the user wishes to perform hclustgeo.

Value

an object of class hclustgeo containing all the results of hclustgeo.uniq for the differents values of alpha

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
###load data
#library("ClustGeo")
#data(comm303)
#base <- comm303$data.303
#Dgeo <- comm303$Dgeo.303

###perform hclustgeo for alpha=1
#res.alpha1 <- hclustgeo(data=base, D.geo=Dgeo, alpha=1)

###plot of the dendrogram
#plot(res.alpha1, choice="dendro") #we retain the partition in K=5 clusters

###plot of the map
#path.303 <- file.path(path.package("ClustGeo"), "shapes/comm303")
#ID.ind <- "INSEE_COM"
#plot(res.alpha1, choice="maps", K.range=5, path.shp=path.303, name.ind.shp=ID.ind)

###perform hclustgeo for several values of alpha
#multi.alpha <- seq(0, 1, 0.2)
#res.alpha <- hclustgeo(data=base, D.geo=Dgeo, alpha=multi.alpha)

###plot of the qualities
#plot.qual <- plot(res.alpha, choice="quality", K.range=5,
#                    path.shp=path.303, name.ind.shp=ID.ind)