Learn R Programming

FactoMineR (version 1.01)

CA: Correspondence Analysis (CA)

Description

Performs Correspondence Analysis (CA) including supplementary row and/or column points.

Usage

CA(X, ncp = 5, row.sup = NULL, col.sup = NULL, graph = TRUE)

Arguments

X
a data frame with n rows and p columns, i.e. a contingency table
ncp
number of dimensions kept in the results (by default 5)
row.sup
a vector indicating the indexes of the supplementary rows
col.sup
a vector indicating the indexes of the supplementary columns
graph
boolean, if TRUE a graph is displayed

Value

  • Returns a list including:
  • eiga numeric vector containing all the eigenvalues
  • cola list of matrices with all the results for the column variable (coordinates, square cosine, contributions)
  • rowa list of matrices with all the results for the row variable (coordinates, square cosine, contributions)
  • col.supa list of matrices containing all the results for the supplementary column points (coordinates, square cosine)
  • row.supa list of matrices containing all the results for the supplementary row points (coordinates, square cosine)
  • calla list with some statistics
  • Returns the row and column points factor map.

References

BENZECRI, J.-P. (1992) Correspondence Analysis Handbook, New-York : Dekker BENZECRI, J.-P. (1980) L'analyse des donn�es tome 2 : l'analyse des correspondances, Paris : Bordas GREENACRE, M.J. (1993) Correspondence Analysis in Practice, London : Academic Press

See Also

print.CA, plot.CA

Examples

Run this code
data(children)
res.ca <- CA (children, col.sup = 6:8, row.sup = 15:18)

Run the code above in your browser using DataLab