fitted {rAverage} | R Documentation |
Extract fitted values from an averaging model
Description
Function to extract fitted values from an object returned by rav
.
Usage
fitted(object, ...)
Arguments
object |
An object of class |
... |
Optionally more fitted model objects. |
Details
Returns the expected responses given an averaging model fitted by the rav
function.
As default, the function extract the fitted values 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:
library(rAverage)
data(fmdata1)
fm1 <- rav(fmdata1, lev=c(3,3))
fitted(fm1)
fitted(fm1, whichModel="EAM")
## End(Not run)
[Package rAverage version 0.5-8 Index]