residuals: Extract residuals from an averaging model

Description Usage Arguments Details Value See Also Examples

Description

Function to extract residuals from an object returned by rav.

Usage

1
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

Value

A matrix of numeric values.

See Also

rav, rAverage-package

Examples

1
2
3
4
5
6
7
8
## 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)

rAverage documentation built on May 2, 2019, 6:40 a.m.