Learn R Programming

RVAideMemoire (version 0.9-83-7)

scat.cr: "Correlation" of variables to axes in MCA or mix analyses

Description

Represents the "correlation" of variables to axes in a MCA (from dudi.acm) or a mix analysis (from dudi.hillsmith or dudi.mix).

Usage

scat.cr(dudi.obj, axis = 1)

Arguments

dudi.obj

object obtained from dudi.acm, dudi.hillsmith or dudi.mix.

axis

axis to be represented (the first by default).

Author

Maxime HERVE <maxime.herve@univ-rennes1.fr>, based on an idea of Stephane Champely.

Details

For quantitative variables, the squared correlation coefficient is displayed. For ordered factors, the squared multiple correlation coefficient is displayed. For unordered factors, the correlation ratio is displayed.

See Also

dudi.acm, dudi.hillsmith, dudi.mix

Examples

Run this code
require(ade4)

# Fictive dataset
age <- sample(15:60,50,replace=TRUE)
sex <- sample(c("M","F"),50,replace=TRUE)
size <- sample(155:190,50,replace=TRUE)
hair <- sample(c("Fair","Dark","Russet"),50,replace=TRUE)
eyes <- sample(c("Blue","Green","Brown"),50,replace=TRUE)
weight <- sample(50:85,50,replace=TRUE)
hand <- sample(c("Left.handed","Right.handed"),50,replace=TRUE)
tab <- data.frame(age,sex,size,weight,hand,eyes,hair,stringsAsFactors=TRUE)

amix <- dudi.hillsmith(tab,scannf=FALSE,nf=2)
scat.cr(amix)

Run the code above in your browser using DataLab