angles.csa {GDAtools} | R Documentation |
Cosine similarities and angles between CSA and MCA
Description
Computes the cosines similarities and angles between the components of a CSA and those of a MCA.
Usage
angles.csa(rescsa, resmca)
Arguments
rescsa |
object of class |
resmca |
object of class |
Value
A list of matrices:
cosines |
Cosine similarities |
angles |
Angles |
Note
This function is adapted from csa.measures
in sco.ca
package.
Author(s)
Nicolas Robette
References
Le Roux B. and Rouanet H., Multiple Correspondence Analysis, SAGE, Series: Quantitative Applications in the Social Sciences, Volume 163, CA:Thousand Oaks (2010).
Le Roux B. and Rouanet H., Geometric Data Analysis: From Correspondence Analysis to Stuctured Data Analysis, Kluwer Academic Publishers, Dordrecht (June 2004).
See Also
Examples
## Performs a specific MCA and a CSA on the Music example data set
## and computes cosine similarities and angles
data(Music)
junk <- c("FrenchPop.NA", "Rap.NA", "Rock.NA", "Jazz.NA", "Classical.NA")
resmca <- speMCA(Music[,1:5], excl = junk)
female <- Music$Gender=="Women"
rescsa <- csMCA(Music[,1:5], subcloud = female, excl = junk)
angles.csa(rescsa, resmca)
[Package GDAtools version 2.1 Index]