Projection of Qualitative Variables in PCA and MCA

Description

It returns the coordinates and aids to the interpretation when one or more qualitative variables are projected as ilustrative in PCA or MCA

Usage

1
supqual(du,qual)

Arguments

du

a object of class “pca” or “acm” (“dudi”) obtained with dudi.pca or dudi.acm of package ade4

qual

a data.frame of qualitative variables as factors

Value

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

Author(s)

Campo Elias Pardo cepardot@unal.edu.co

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# 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)])