Learn R Programming

analogue (version 0.4-0)

dissimilarities: Extract dissimilarity coefficients from models

Description

Extracts a vector of dissimilarity coefficients from an object for further analysis.

Usage

dissimilarities(object, ...)
dissim(object, ...)

## S3 method for class 'analog': dissimilarities(object, which = c("train", "analogs"), ...)

Arguments

object
an R object from which the dissimilarity values are to be extracted. Currently only for objects of class "analog".
which
character; which set of dissimilarities should be extracted. One of "train" or "analogs".
...
arguments passed to other methods.

Value

  • A vector of dissimilarities.

Details

The function can be called using the much shorter name "dissim".

See Also

analog, plot.dissimilarities

Examples

Run this code
## continue the RLGH example from ?join
example(join)

## analog matching between SWAP and RLGH core
swap.analog <- analog(swapdiat, rlgh, method = "chord")
swap.analog
summary(swap.analog)

## compare training set dissimilarities with normals
## and derive cut-offs
swap.dissim <- dissim(swap.analog)
plot(swap.dissim)

Run the code above in your browser using DataLab