residuals function

Extract residuals from an averaging model

Extract residuals from an averaging model

Function to extract residuals from an object returned by rav.

residuals(object, ...)

Arguments

  • object: An object of class rav containing an estimated averaging model.
  • ...: Optionally more fitted model objects.

Details

Returns the residuals of an averaging model fitted by the rav function. When standard = TRUE, residuals will be transformed in z-scale (mean=0 and sd=1 in each column).

As default, the function extract the residuals of the (first) best model. The optional argument whichModel can be specified to extract the values of another model. Options are:

  1. "null": null model
  2. "ESM": equal scale values model
  3. "SAM": simple averaging model
  4. "EAM": equal-weights averaging model
  5. "DAM": differential-weight averaging model
  6. "IC": information criteria model

Returns

A matrix of numeric values.

See Also

rav, rAverage-package

Examples

## Not run: data(fmdata1) fm1 <- rav(fmdata1, lev=c(3,3)) residuals(fm1) residuals(fm1, whichModel="EAM") residuals(fm1, whichModel="EAM", standard=TRUE) ## End(Not run)
  • Maintainer: Davide Massidda
  • License: GPL (>= 2)
  • Last published: 2017-07-29

Useful links