This is an elementary tutorial for Correspondecne Analysis with Diodon.
Olivier Coulaud
Alain Franc
Jean-Marc Frigerio
Rémy Peressoni
Florent Pruvost
Alain Franc, alain.franc@inrae.fr
started: October, 29th, 2022
version: 22.10.29
The tutorial programm for running CoA is very short, and given here. It will be explained step by step along this notebok.
# importing library
import pydiodon as dio
# loading dataset
infile = "../data4tests/CoA_LMF82.txt"
A, rownames, colnames = dio.load_dataset("example_coa")
# running CoA
L, Y_r, Y_c = dio.coa(A)
It is followed by a few functions for plotting the results
# plotting the results
dio.plot_coa(Y_r, Y_c, rownames=rownames, colnames=colnames)
import pydiodon as dio
Use terefor the function dio.load_dataset().
The name for the example for CoA is "example_coa"
A, rownames, colnames = dio.load_dataset("example_coa")
L, Y_r, Y_c = dio.coa(A, k=3)
dio.plot_coa(Y_r, Y_c, rownames=rownames, colnames=colnames)
Eigenvalues are given in $L$, and are
print(L)
Table 8, p. 306, in L. Lebart, A. Morineau, and J.-P. Fénelon (1982).
The methods used in those libraries and their pseudocodes are explained in
A. Franc. Linear Dimensionality Reduction. Inria-Inrae Research report N° 9488; 2022 ; arXiv:2209.13597 https://doi.org/10.48550/arXiv.2209.13597