Learn R Programming

MCAvariants (version 2.6.1)

tableconvert: 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

Rosaria Lombardo and Eric J Beh

References

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

Examples

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

Run the code above in your browser using DataLab