supqual: Projection of Qualitative Variables in PCA and MCA

View source: R/supqual.R

supqualR Documentation

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

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

# 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)])

FactoClass documentation built on Sept. 14, 2023, 1:07 a.m.