scat.cr | R Documentation |
Represents the "correlation" of variables to axes in a MCA (from dudi.acm
) or a mix analysis (from dudi.hillsmith
or dudi.mix
).
scat.cr(dudi.obj, axis = 1)
dudi.obj |
object obtained from |
axis |
axis to be represented (the first by default). |
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.
Maxime HERVE <maxime.herve@univ-rennes1.fr>, based on an idea of Stephane Champely.
dudi.acm
, dudi.hillsmith
, dudi.mix
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.