Learn R Programming

analogue (version 0.17-5)

summary.mat: Summarise Modern Analogue Technique models

Description

summary method for class "mat".

Usage

# S3 method for mat
summary(object, k = 10,
        digits = min(2, getOption("digits") - 4), ...)

Arguments

object

an object of class "cma", usually the result of a call to cma.

k

numeric; maximum modern analogues to use to summarise model fits.

digits

numeric; the number of significant digits with which to format results.

arguments passed to or from other methods.

Value

A list with the components below. The number of analogues used, k is returned as attribute "k".

summ

a data.frame containing the model fits for training set samples. See notes below.

tbl

matrix of summary statistics for an un-weighted model.

tbl.W

matrix of summary statistics for a weighted model.

call

the matched function call

quantiles

the quantiles of the distribution of pairwise dissimilarities for the training set, for "probs = c(0.01, 0.02, 0.05, 0.1, 0.2)".

See Also

mat, summary.

Examples

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

## fit the MAT model using the squared chord distance measure
swap.mat <- mat(swapdiat, swappH, method = "SQchord")
swap.mat

## model summary
summary(swap.mat)

## model summary - evaluating models using k = 1, ..., 20
## analogues instead of the default, 10.
summary(swap.mat, k = 20)
# }

Run the code above in your browser using DataLab