Learn R Programming

tidylearn (version 0.1.0)

tidy_silhouette: Tidy Silhouette Analysis

Description

Compute silhouette statistics for cluster validation

Usage

tidy_silhouette(clusters, dist_mat)

Value

A list of class "tidy_silhouette" containing:

  • silhouette_data: tibble with silhouette values for each observation

  • avg_width: average silhouette width

  • cluster_avg: average silhouette width by cluster

Arguments

clusters

Vector of cluster assignments

dist_mat

Distance matrix (dist object)