| getSilhouette {timeOmics} | R Documentation |
getSilhouette is a generic function that compute silhouette coefficient
for an object of the type pca, spca, pls, spls,
block.pls, block.spls.
getSilhouette(object)
object |
a mixOmics object of the class |
This method extract the componant contribution depending on the object, perform the clustering step, and compute the silhouette coefficient.
silhouette coefficient
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)