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

View source: R/scat.cr.R

scat.crR Documentation

"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).

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.

Author(s)

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

See Also

dudi.acm, dudi.hillsmith, dudi.mix

Examples

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)

RVAideMemoire documentation built on Nov. 6, 2023, 5:07 p.m.