Learn R Programming

PCAmixdata (version 3.1)

supvar.PCAmix: Supplementary variables in PCAmix

Description

Performs the coordinates of supplementary variables on the component of an object of class PCAmix.

Usage

# S3 method for PCAmix
supvar(obj, X.quanti.sup = NULL, X.quali.sup = NULL,
  rename.level = FALSE, ...)

Arguments

obj

an object of class PCAmix.

X.quanti.sup

a numeric matrix of data.

X.quali.sup

a categorical matrix of data.

rename.level

boolean, if TRUE all the levels of the qualitative variables are renamed as follows: "variable_name=level_name". This prevents to have identical names of the levels.

further arguments passed to or from other methods.

See Also

PCAmix

Examples

Run this code
# NOT RUN {
data(wine)
X.quanti <- splitmix(wine)$X.quanti[,1:5]
X.quali <- splitmix(wine)$X.quali[,1,drop=FALSE]
X.quanti.sup <-splitmix(wine)$X.quanti[,28:29]
X.quali.sup <-splitmix(wine)$X.quali[,2,drop=FALSE]
pca<-PCAmix(X.quanti,X.quali,ndim=4,graph=FALSE)
pcasup <- supvar(pca,X.quanti.sup,X.quali.sup)
# }

Run the code above in your browser using DataLab