Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: xclust
See also: pswap conting measure agglom kmeans

Quantlet: contmax
Description: computes a linkage table between the rows and columns of a contingency table by maximum value of correspondence. The number of correspondences is the minimum of number or dimensions of the contingency table.

Usage: c = contmax (h)
Input:
h n x m matrix (for instance, a contingency table
Output:
c l x 2 matrix of the category labels of the rows (first column) which correspond to the category labels of the columns (second column)

Example:
; load the library xclust
library("xclust")
; generate contingency table
h=#(20, 1, 3, 0, 4)~#(1, 7, 25, 6, 11)~#(3, 2, 1, 4, 5)~#(1, 6, 0, 0, 0)~#(0, 0, 1, 9, 1)
contmax(h)

Result:
Content of object c

[1,]        3        2
[2,]        1        1
[3,]        4        5
[4,]        2        4
[5,]        5        3



Author: H.-J. Mucha, S. Klinke, 19970902
(C) MD*TECH Method and Data Technologies, 05.02.2006