Examples for 'MASS::corresp'


Simple Correspondence Analysis

Aliases: corresp corresp.xtabs corresp.data.frame corresp.default corresp.factor corresp.formula corresp.matrix

Keywords: category multivariate

### ** Examples

## IGNORE_RDIFF_BEGIN
## The signs can vary by platform
(ct <- corresp(~ Age + Eth, data = quine))
First canonical correlation(s): 0.05317534 

 Age scores:
        F0         F1         F2         F3 
-0.3344445  1.4246090 -1.0320002 -0.4612728 

 Eth scores:
         A          N 
-1.0563816  0.9466276 
plot(ct)
plot of chunk example-MASS-corresp-1
corresp(caith)
First canonical correlation(s): 0.4463684 

 Row scores:
       blue       light      medium        dark 
-0.89679252 -0.98731818  0.07530627  1.57434710 

 Column scores:
       fair         red      medium        dark       black 
-1.21871379 -0.52257500 -0.09414671  1.31888486  2.45176017 
biplot(corresp(caith, nf = 2))
plot of chunk example-MASS-corresp-1
## IGNORE_RDIFF_END

[Package MASS version 7.3-58.2 Index]