supvar.PCAmix: Supplementary variables in PCAmix

Description Usage Arguments See Also Examples

Description

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

Usage

1
2
3
## S3 method for class '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

1
2
3
4
5
6
7
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)

Example output



PCAmixdata documentation built on May 2, 2019, 12:38 p.m.