Categories: To Confusion

A command to compute the Confusion matrix from two selected Categories objects.

Algorithm

A confusion matrix is constructed from both Categories objects in the following way: The first Categories object is considered the stimulus Categories and its unique (sorted) categories form the row indices of the confusion matrix, the unique (sorted) categories of the second object form the column indices of this matrix.

Next, each element in the first Categories object is compared with the corresponding object in the second object and the element in the confusion matrix addressed by this pair is incremented by 1.

Links to this page


© djmw, September 18, 1996