View source: R/cluster_discrimination.R
cluster_discrimination | R Documentation |
Computes linear discriminant analysis (LDA) on classified cluster groups, and
determines the goodness of classification for each cluster group. See MASS::lda()
for details.
cluster_discrimination(x, cluster_groups = NULL, ...)
x |
A data frame |
cluster_groups |
Group classification of the cluster analysis, which can
be retrieved from the |
... |
Other arguments to be passed to or from. |
n_clusters()
to determine the number of clusters to extract,
cluster_analysis()
to compute a cluster analysis and
performance::check_clusterstructure()
to check suitability of data for
clustering.
# Retrieve group classification from hierarchical cluster analysis
clustering <- cluster_analysis(iris[, 1:4], n = 3)
# Goodness of group classification
cluster_discrimination(clustering)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.