residuals {rAverage} | R Documentation |
Extract residuals from an averaging model
Description
Function to extract residuals from an object returned by rav
.
Usage
residuals(object, ...)
Arguments
object |
An object of class |
... |
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:
-
"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
Value
A matrix of numeric values.
See Also
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)
[Package rAverage version 0.5-8 Index]