docabasic function

Doubly, or two-way, ordered correspondence analysis: for two ordered variables

Doubly, or two-way, ordered correspondence analysis: for two ordered variables

This function is used by the main function CAvariants when the input parameter is catype = "DOCA". It performs the bivariate moment decomposition of the Pearson ratio, computes polynomial axes, coordinates, weights of rows and columns, total inertia (based on Pearson's chi-squared statistic), the rank of the matrix. It also decomposes the inertia into row and column polynomial components.

docabasic(Xtable, mi, mj)

Arguments

  • Xtable: The two-way contingency table.
  • mi: The set of ordered row scores. By default, mi = c(1:nrow(Xtable)) (natural scores).
  • mj: The set of ordered column scores. By default, mj = c(1:ncol(Xtable)) (natural scores).

References

Beh EJ and Lombardo R 2014 Correspondence Analysis: Theory, Practice and New Strategies. Wiley.

Lombardo R Beh EJ 2016 Variants of Simple Correspondence Analysis. The R Journal, 8 (2), 167--184.

Lombardo R Beh EJ and Kroonenberg PM 2016 Modelling Trends in Ordered Correspondence Analysis Using Orthogonal Polynomials. Psychometrika, 81(2), 325--349.

Author(s)

Rosaria Lombardo and Eric J. Beh

Examples

data(asbestos) mi <- c(1,2,3,4) #natural scores for rows mj <- c(4.5,14.5,24.5,34.5,44.5) #midpoints for columns docabasic(asbestos, mi, mj)