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

LCA

Latent Class Analysis


Description

Combine clustering results using latent class analysis.

Usage

LCA(E, is.relabelled = TRUE, seed = 1)

Arguments

E

a matrix of clusterings with number of rows equal to the number of cases to be clustered, number of columns equal to the clustering obtained by different resampling of the data, and the third dimension are the different algorithms. Matrix may already be two-dimensional.

is.relabelled

logical; if FALSE the data will be relabelled using the first clustering as the reference.

seed

random seed for reproducibility

Value

a vector of cluster assignments based on LCA

Author(s)

Derek Chiu

See Also

Other consensus functions: CSPA(), LCE(), k_modes(), majority_voting()

Examples

data(hgsc)
dat <- hgsc[1:100, 1:50]
cc <- consensus_cluster(dat, nk = 4, reps = 6, algorithms = "pam", progress =
FALSE)
table(LCA(cc[, , 1, 1, drop = FALSE], is.relabelled = FALSE))

diceR

Diverse Cluster Ensemble in R

v1.0.3
MIT + file LICENSE
Authors
Derek Chiu [aut, cre], Aline Talhouk [aut], Johnson Liu [ctb, com]
Initial release

We don't support your browser anymore

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