getSilhouette: Get Silhouette Coefficient from (s)PCA, (s)PLS or...

View source: R/getSilhouette.R

getSilhouetteR Documentation

Get Silhouette Coefficient from (s)PCA, (s)PLS or block.(s)PLS clusters

Description

getSilhouette is a generic function that compute silhouette coefficient for an object of the type pca, spca, pls, spls, block.pls, block.spls.

Usage

getSilhouette(object)

Arguments

object

a mixOmics object of the class pca, spca, pls, spls, block.pls, block.spls

Details

This method extract the componant contribution depending on the object, perform the clustering step, and compute the silhouette coefficient.

Value

silhouette coefficient

Examples

demo <- suppressWarnings(get_demo_cluster())
getSilhouette(object = demo$pca)
getSilhouette(object = demo$spca)
getSilhouette(object = demo$pls)
getSilhouette(object = demo$spls)
getSilhouette(object = demo$block.pls)
getSilhouette(object = demo$block.spls)



abodein/timeOmics documentation built on April 12, 2024, 12:30 p.m.