get_weight {ClustVarLV}R Documentation

Weights of the external variables, or additional mode, on the latent component in each cluster.

Description

To get the weigths associated with each cluster. For CLV(_kmeans) or LCLV, applies only when external variables (Xr, Xu or both) are involved. For CLV3W(_kmeans), the weights are associated with the third mode of the 3-way array.

Usage

get_weight(resclv, K = NULL, graph = FALSE, cex.lab = 1)

Arguments

resclv

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

K

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

graph

: boolean, if TRUE, the barplot associated with the scores is displayed (default : graph=FALSE)

cex.lab

: magnification to be used for labels (1 by default)

Value

weight

Weights in each cluster (associated with mode 3 for CLV3W object)
For each cluster, the vector of weights is set to length 1
output provided as matrix with K columns (K: number of clusters)
In the special case of LCLV, two matrices of weights are defined :
weight_v : weights of the external Xr variables,
weight_u : weights of the external Xu variables.


[Package ClustVarLV version 2.1.1 Index]