sdols (version 2.0.0)

latentStructureFit: Compute Fit Summaries for a Latent Structure Estimate

Description

This function computes various summaries of the fit of a clustering based on the expected pairwise allocation matrix.

Usage

latentStructureFit(estimate, expectedPairwiseAllocationMatrix)

Arguments

estimate

A clustering. If estimate is a length n vector, it is taken to be a clustering where items i and j are in the same cluster if and only if estimate[i] == estimate[j].

expectedPairwiseAllocationMatrix

A n-by-n symmetric matrix whose (i,j) elements gives the estimated expected number of times that items i and j are in the same subset (i.e., cluster).

Value

A list of the following elements:

absoluteError

The expectation of the absolute error loss.

binder

The expectation of the binder loss.

lowerBoundVariationOfInformation

The lower bound of the expectation of the variation of information loss.

See Also

expectedPairwiseAllocationMatrix, salso

Examples

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

probabilities <- expectedPairwiseAllocationMatrix(iris.clusterings)
estimate <- salso(probabilities)
latentStructureFit(estimate, probabilities)

})

# }

Run the code above in your browser using DataLab