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

Description Usage Arguments Details Value Examples

View source: R/getSilhouette.R

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

1
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

1
2
3
4
5
6
7
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_BioC documentation built on April 25, 2021, 5:23 p.m.