tableconvert {MCAvariants} | R Documentation |
Convert contingency table in table of reduced code
Description
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).
Usage
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. |
Author(s)
Rosaria Lombardo and Eric J Beh
References
Beh EJ Lombardo R (2014) Correspondence Analysis, Theory, Practice and New Strategies. Wiley
Examples
alligatormca<-tableconvert(alligator.dat)
dimnames(alligatormca)<-list(paste("a", 1:300,sep = ""),c("Size","Food","Lake"))
[Package MCAvariants version 2.6.1 Index]