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

get_partition

clusters memberships for a partition into K clusters.


Description

To get the clusters memberships of the variables.

Usage

get_partition(resclv, K = NULL, type = "vector")

Arguments

resclv

: result of CLV(), CLV_kmeans(), LCLV(), CLV3W() or CLV3W_km()

K

: the number of clusters chosen (already defined if CLV_kmeans or CLV3W_kmeans is used)

type

: "vector" (by default) for output given as a vector of integers between 1 and K (with 0 for "kplusone" strategy),
"matrix", the output given as a binary matrix of size p x n.

Value

partition

the group's membership for the variables, in a vector or matrix form.
For CLV3W object, a vector of memberships with mode 2)

Examples

data(apples_sh)
resclvX <- CLV(X = apples_sh$senso, method = "directional", sX = TRUE)
parti4G<-get_partition(resclvX, K = 4)

ClustVarLV

Clustering of Variables Around Latent Variables

v2.0.1
GPL-3
Authors
Evelyne Vigneau [aut, cre], Mingkun Chen [ctb], Veronique Cariou [aut]
Initial release

We don't support your browser anymore

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