Learn R Programming

analogue (version 0.4-0)

summary.mat: Summarising Modern Analogue Technique models

Description

summary method for class "mat".

Usage

## S3 method for class '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".
  • summa data.frame containing the model fits for training set samples. See notes below.
  • tblmatrix of summary statistics for an un-weighted model.
  • tbl.Wmatrix of summary statistics for a weighted model.
  • callthe matched function call
  • quantilesthe 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
## 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