View source: R/supvar.PCAmix.R
supvar.PCAmix | R Documentation |
Performs the coordinates of supplementary variables on the
component of an object of class PCAmix
.
## S3 method for class 'PCAmix' supvar(obj, X.quanti.sup = NULL, X.quali.sup = NULL, rename.level = FALSE, ...)
obj |
an object of class |
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. |
PCAmix
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.