coef {rAverage} | R Documentation |
Function to extract fit model coefficients from an object returned by rav
.
coef(object, ...)
object |
An object of class |
... |
Optionally more fitted model objects. |
Returns the parameters of an averaging model fitted by the rav
function, in the order:
s0
, w0
, s(k,j)
, and w(k,j)
.
As default, the function extract the cofficients 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 numeric vector.
## Not run:
data(fmdata1)
fm1 <- rav(fmdata1, lev=c(3,3))
coef(fm1)
coef(fm1, whichModel="EAM")
## End(Not run)