Sensitivity:
Compute the sensitivities (probability of true positive) of each cluster
Description
The sensitivity or conditional probability of the correct classification of cluster k is calculated as follows:
First, the proportions of observations whose true cluster label is k
are computed for each classified clusters.
Then the largest proportion is selected as the conditional probability of the correct classification.
Since this calculation can return 1 for sensitivities of all clusters if all observations
belong to one cluster, we also report the observed cluster labels
returned by the algorithms.
Usage
Sensitivity(label1, label2)
Arguments
label1
A vector of length N, containing the cluster labels from any clustering algorithms.
label2
A vector of length N, containing the true cluster labels.