Learn R Programming

salso (version 0.2.5)

confidence: Compute Clustering Confidence

Description

This function has been deprecated. Instead of this function, see the score in the list returned by the summary function on the result of the salso function.

Usage

confidence(estimate, psm)

Arguments

estimate

A vector of length n, where i and j are in the same cluster if and only if estimate[i] == estimate[j].

psm

A \(n\)-by-\(n\) symmetric matrix whose \((i,j)\) element gives the relative frequency that that items \(i\) and \(j\) are in the same subset (i.e., cluster).

Details

This function computes the confidence values for n observations based on a clustering estimate and the expected pairwise allocation matrix.

Examples

Run this code
# NOT RUN {
suppressWarnings({  # For testing purposes, suppress deprecation warning.

clustering <- salso(iris.clusterings)
psm <- psm(iris.clusterings)
salso:::confidence(clustering, psm)

})

# }

Run the code above in your browser using DataLab