residuals {rAverage} | R Documentation |
Function to extract residuals from an object returned by rav
.
residuals(object, ...)
object |
An object of class |
... |
Optionally more fitted model objects. |
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:
"null"
: null model
"ESM"
: equal scale values model
"SAM"
: simple averaging model
"EAM"
: equal-weights averaging model
"DAM"
: differential-weight averaging model
"IC"
: information criteria model
A matrix of numeric values.
## 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)