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) |
; 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)
Content of object c [1,] 3 2 [2,] 1 1 [3,] 4 5 [4,] 2 4 [5,] 5 3