tableconvert | R Documentation |
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)
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. |
Rosaria Lombardo and Eric J Beh
Beh EJ Lombardo R (2014) Correspondence Analysis, Theory, Practice and New Strategies. Wiley
alligatormca<-tableconvert(alligator.dat)
dimnames(alligatormca)<-list(paste("a", 1:300,sep = ""),c("Size","Food","Lake"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.