summary.analog {analogue}R Documentation

Summarise analogue matching results

Description

summary method for class "analog".

Usage

## S3 method for class 'analog'
summary(object, display = c("dist", "names", "quantiles"),
        k = 10, probs = c(0.01, 0.02, 0.05, 0.1, 0.2), ...)

Arguments

object

an object of class "analog", usually as a result of a call to analog.

display

character; one or more of the listed choices. Determines which aspects of the analog results are summarised.

k

number of analogues to use. If missing, k is chosen automatically as the k that achieves lowest RMSE.

probs

numeric; giving the probabilities of the distribution to return quantiles for. See quantile.

...

arguments passed to or from other methods.

Value

A list with one or more of the components listed below. Attributes "method", "train", "call" and "k" contain the dissimilarity coefficient used, whether the training set dissimilarities were saved, the matched function call and the number of close analogues to return respectively.

dists

a matrix of dissimilarities between training set samples and fossil samples. The number of rows is given by argument k. There is a column for each fossil sample.

names

a matrix of names of samples from the training set that are analogues for each fossil sample. The number of rows is given by argument k. There is a column for each fossil sample.

quantiles

numeric; the quantiles of the distribution of the pairwise dissimilarities for the training set for probabilities prob.

Author(s)

Gavin L. Simpson

See Also

analog.

Examples

## Not run: 
## 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)

## End(Not run)

[Package analogue version 0.17-6 Index]