Learn R Programming

ClustVarLV (version 1.6.0)

get_comp: latent variables associated with each cluster

Description

To get the latent variables associated with each cluster.

Usage

get_comp(resclv, K = NULL)

Arguments

resclv

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

K

: the number of groups chosen (already defined if CLV_kmeans is used)

Value

comp

the group latent variables (centered, but not standardized) For results of LCLV, two types of latent variables are available : compt : The latent variables of the clusters defined according to the Xr variables, compc : The latent variables of the clusters defined according to the Xu variables

Examples

Run this code
# NOT RUN {
data(apples_sh)
resclvX <- CLV(X = apples_sh$senso, method = "directional", sX = TRUE)
comp4G<-get_comp(resclvX, K = 4) 

# }

Run the code above in your browser using DataLab