boot.silhouette: Construct silhouette plot from bootstrap replicates

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/boot.silhouette.R

Description

A silhouette plot is constructed, indicating the proportion of times the cluster members cluster together in the same cluster.

Usage

1
boot.silhouette(clusboot.out, ...)

Arguments

clusboot.out

an object of class clusboot, usually, a result of a call to clusboot

...

more plotting parameters, e.g. col

Details

The clustering tightness is computed for each cluster, compared to the 'nearest' alternative cluster. The cluster tightness is computed as the mean of the proportion of times each pair of objects are clustered together in the same cluster. The tightness to other clusters is computed as the mean of the proportion an item of this cluster and one from the other cluster as clustered together. The 'nearest' alternative cluster is defined as the alternative cluster with the numerically largest tightness to the current cluster.

Value

a vector with number of components equal to the number of classes, providing the silhouette value for each class.

Author(s)

Sugnet Lubbe slubbe@sun.ac.za

References

Lubbe, S. Visualisations associated with bootstrapping cluster analysis. Data Science, Statistics and Visualisation conference, July 2017, Lisbon, Portugal.

See Also

clusboot for performing bootstrap on a cluster analysis output and plot.clusboot to visually represent the bootstrap replications

Examples

1
2
3
4
data(case_study_psychiatrist)
boot.out <- clusboot (scale(case_study_psychiatrist), B=100, k=6, clustering.func=complete.linkage)
plot(boot.out)
boot.silhouette (boot.out)

Example output

              [,1]        [,2]
 [1,] -0.005800826  0.44307745
 [2,] -0.377272791 -0.11697137
 [3,] -0.381547449 -0.11214733
 [4,] -0.388414562 -0.10745884
 [5,]  0.029832798  0.35129440
 [6,] -0.396597147 -0.08598336
 [7,] -0.384826491 -0.10502065
 [8,]  0.220521811  0.53787782
 [9,] -0.384531673 -0.04271285
[10,] -0.386991579 -0.11094519
[11,] -0.381070003 -0.11742814
[12,] -0.379277753 -0.01179801
[13,] -0.403859295 -0.09503840
[14,] -0.386955713 -0.15859408
[15,] -0.395612927 -0.10236148
[16,] -0.382951397 -0.10962589
[17,]  0.296928941  0.07893013
[18,]  0.327733067  0.13499660
[19,]  0.258403432  0.24774126
[20,]  0.383406853  0.35617064
[21,]  0.009462771  0.08030862
[22,]  0.176121580  0.55035908
[23,]  0.336998764  0.55194016
[24,]  0.563083894 -0.40219999
[25,]  0.615012743 -0.46047263
[26,]  0.527649147 -0.42786486
[27,]  0.435055983 -0.40592353
[28,]  0.064235723 -0.04126836
[29,]  0.518138571 -0.28215565
[30,]  0.465474554 -0.17975130
[1] 0.61371800 0.02883772 0.27370066 0.67938101        NaN 0.72716274

ClusBoot documentation built on Dec. 16, 2019, 1:39 a.m.