Last data update: 2014.03.03

R: "Correlation" of variables to axes in MCA or mix analyses
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 Herv<c3><a9> <mx.herve@gmail.com>, based on an idea of St<c3><a9>phane 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)

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

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(RVAideMemoire)
*** Package RVAideMemoire v 0.9-56 ***
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/RVAideMemoire/scat.cr.Rd_%03d_medium.png", width=480, height=480)
> ### Name: scat.cr
> ### Title: "Correlation" of variables to axes in MCA or mix analyses
> ### Aliases: scat.cr
> 
> ### ** Examples
> 
> require(ade4)
Loading required package: 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)
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>