Learn R Programming

svs (version 1.0.2)

fast_sca: Simple Correspondence Analysis

Description

A fast procedure for computing simple correspondence analysis.

Usage

fast_sca(dat)

Arguments

dat
Input data: can be a table or a data frame (but the data frame must have only two columns).

Value

  • A list with components:
  • valThe eigenvalues or principal inertias, indicating how much each latent axis explains.
  • pos1The coordinates of the first set of levels (viz. the row levels of a frequency table).
  • pos2The coordinates of the second set of levels (viz. the column levels of a frequency table).

Examples

Run this code
SndT_Fra <- read.table(system.file("extdata", "SndT_Fra.txt", package = "svs"),
   header = TRUE, sep = "\t", quote = "\"", encoding = "UTF-8")
sca.SndT_Fra <- fast_sca(SndT_Fra)
sca.SndT_Fra
}
references{
Greenacre, M. (2007) emph{Correspondence analysis in practice, Second edition}. Boca Raton: Chapman and Hall/CRC.
}

Run the code above in your browser using DataLab