Jump to:

Freely distributable documents and computer programs

Le Progiciel R / The R Package

CCA Bibliography 86-96

Lexique anglais-français d'écologie numérique et de statistique




Valid HTML 3.2!

Up | Version Française | Site Map | Feedback |

Congruence among distance matrices

Pierre Legendre
April 2001
Département de Sciences Biologiques
Université de Montréal

What does program CADM do?

This program computes a test of the congruence among several distance matrices, using Kendall’s W statistic. The test, which is meant to be applied prior to using several data matrices together in a combined phylogenetic or other type of multivariate analysis, is described in Legendre & Lapointe (2003). Principle of the test (H0: Incongruence of all matrices):
  1. Read in the distance matrices and write them out to a table, each matrix being unfolded onto a row of that table.
  2. Transform the distances from each matrix into ranks.
  3. Compute Kendall’s coefficient of concordance, W.
  4. Permute each matrix using a “matrix permutation” procedure, as in the Mantel test, and compute W*.
  5. Repeat step 4 a large number of times.
  6. Add the reference value of W to the distribution of W* values. Calculate the permutational probability associated to W.
The global CADM test is followed by test of significance in which each distance matrix, in turn, is permuted (H0: This distance matrix is incongruent with the other matrices). Complementary Mantel tests, based upon ranks, are also computed; they allow users to determine what are the groups of congruent distance matrices. The choice is left to users to determine if they want the program to compute the tests of congruence only, the Mantel tests based on ranks only, or both:
(1) Compute and test congruence only
(2) Compute and test Mantel on ranked distances only
(3) Both congruence and Mantel
The number of probabilities of the two forms of tests can be set separately. The program allows the calculation of the test using asymmetric matrices. This is used only if one of the matrices remains asymmetric, i.e., is not transformed into a symmetric matrix by the program.

Program availability

Macintosh version
Compressed binhexed archive containing:
  • Fortran source code
  • Compiled versions of the program for Macintosh computers using 680x0, 680x0 + FPU, or PowerPC processor
  • Program documentation, in Adobe Acrobat format
32-bit DOS version
Zip-compressed archive containing:
  • Fortran source code
  • Compiled version of the program for 32-bit computers (Windows 95 or NT)
  • Program documentation, in Adobe Acrobat format
The maximum size of the data matrix is 120 objects and 20 distance matrices. The program requires 5.6 Mb RAM for running. The source code can be compiled using a Fortran compiler. The user may modify the Parameter statement at the beginning of the program, which fixes the size of the largest data matrix that can be analysed analysed (nmax = maximum number of observations, matmax = maximum number of distance matrices). If you do not have access to a Fortran compiler, we will be glad to help.

Reference

Legendre, P. & F.-J. Lapointe. 2004. Assessing the congruence among distance matrices: single malt Scotch whiskies revisited. Australian and New Zealand Journal of Statistics 46: 615-629.


Last updated on Sunday, August 01, 2010 by Philippe Casgrain
Created on Monday, April 09, 2001