dissimilarities {analogue}R Documentation

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.

Details

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

Value

A vector of dissimilarities.

Author(s)

Gavin L. Simpson

See Also

analog, plot.dissimilarities

Examples

## continue the ImbrieKipp example from ?join
example(join)

## analog matching between SWAP and RLGH core
ik.analog <- analog(ImbrieKipp, V12.122, method = "chord")
ik.analog
summary(ik.analog)

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


[Package analogue version 0.6-6 Index]