supqual | R Documentation |
It returns the coordinates and aids to the interpretation when one or more qualitative variables are projected as ilustrative in PCA or MCA
supqual(du,qual)
du |
a object of class “pca” or “acm” (“dudi”) obtained with |
qual |
a data.frame of qualitative variables as factors |
object of class list
with the following:
wcat |
weight of the categories in PCA case |
ncat |
frequency of the categories in MCA case |
dis2 |
square distance to the origin from the complete space |
coor |
factorial coordinates |
tv |
test values |
cos2 |
square cosinus |
scr |
relation of correaltion |
Campo Elias Pardo cepardot@unal.edu.co
# in PCA
data(admi)
Y<-admi[,2:6]
pcaY<-dudi.pca(Y,scannf=FALSE)
Yqual<-admi[,c(1,8)]
supqual(pcaY,Yqual)
# in MCA
Y<-admi[,c(8,11,9,10)]
mcaY<-dudi.acm(Y,scannf=FALSE)
supqual(mcaY,admi[,c(1,13)])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.