Learn R Programming

analogue (version 0.3-3)

summary.bootstrap: Summarising bootstrap resampling for MAT models

Description

summary method for class "bootstrap".

Usage

## S3 method for class 'bootstrap':
summary(object, ...)

Arguments

object
an object of class "bootstrap", usually the result of a call to bootstrap.
...
arguments passed to or from other methods.

Value

  • A data frame with the following components:
  • Obsobserved response value for training set samples.
  • Estestimated (fitted) values from the mat model.
  • Residresiduals from the mat model.
  • Boot.Estbootstrap estimated (fitted) values for the mat model.
  • Boot.Residresiduals of the bootstrap estimates of a mat model.
  • s1bootstrap-derived s1 error component for each sample in the training set.
  • s2bootstrap-derived s2 error component for each sample in the training set.
  • RMSEPbootstrap-derived RMSEP for each sample in the training set.

See Also

bootstrap, 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")

## bootstrap training set
swap.boot <- bootstrap(swap.mat, k = 10, n.boot = 1000)
swap.boot
summary(swap.boot)

## bootstrap with predictions:
rlgh.boot <- bootstrap(swap.mat, rlgh, k = 10, n.boot = 1000)
summary(rlgh.boot)

Run the code above in your browser using DataLab