tableconvert function

Convert contingency table in table of reduced code

Convert contingency table in table of reduced code

This simple piece of R code converts a two-way or three-way contingency table into what is required to analyse MCA (table of reduced code: n by number of variables).

tableconvert(N)

Arguments

  • N: A two-way or three-way contingency table to convert in a table n by np, where np is the number of the categorical variables.

References

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

Author(s)

Rosaria Lombardo and Eric J Beh

Examples

alligatormca<-tableconvert(alligator.dat) dimnames(alligatormca)<-list(paste("a", 1:300,sep = ""),c("Size","Food","Lake"))