getSilhouette {timeOmics} | R 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)

[Package timeOmics version 1.7.1 Index]