Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

cluster_discrimination

Compute a linear discriminant analysis on classified cluster groups


Description

Computes linear discriminant analysis on classified cluster groups, and determines the goodness of classification for each cluster group.

Usage

cluster_discrimination(x, cluster_groups = NULL)

Arguments

x

A data frame

cluster_groups

Group classification of the cluster analysis, which can be retrieved from the cluster_analysis function.

See Also

n_clusters to determine the number of clusters to extract, cluster_analysis to compute a cluster analysis and check_clusterstructure to check suitability of data for clustering.

Examples

## Not run: 
# retrieve group classification from hierarchical cluster analysis
groups <- cluster_analysis(iris[, 1:4])

# goodness of group classificatoin
cluster_discrimination(iris[, 1:4], cluster_groups = groups)

## End(Not run)

parameters

Processing of Model Parameters

v0.13.0
GPL-3
Authors
Daniel Lüdecke [aut, cre] (<https://orcid.org/0000-0002-8895-3206>, @strengejacke), Dominique Makowski [aut] (<https://orcid.org/0000-0001-5375-9967>), Mattan S. Ben-Shachar [aut] (<https://orcid.org/0000-0002-4287-4801>), Indrajeet Patil [aut] (<https://orcid.org/0000-0003-1995-6531>, @patilindrajeets), Søren Højsgaard [aut], Zen J. Lau [ctb], Vincent Arel-Bundock [ctb] (<https://orcid.org/0000-0003-1995-6531>, @vincentab), Jeffrey Girard [ctb] (<https://orcid.org/0000-0002-7359-3746>, @jeffreymgirard)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.