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

Description Usage Arguments Details Author(s) See Also Examples

View source: R/scat.cr.R

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

1
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 Herv<e9> <[email protected]>, based on an idea of St<e9>phane Champely.

See Also

dudi.acm, dudi.hillsmith, dudi.mix

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
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)

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

RVAideMemoire documentation built on Aug. 21, 2017, 5:07 p.m.