coef: Extract coefficients from an averaging model

Description Usage Arguments Details Value See Also Examples

Description

Function to extract fit model coefficients from an object returned by rav.

Usage

1
coef(object, ...)

Arguments

object

An object of class rav containing an estimated averaging model.

...

Optionally more fitted model objects.

Details

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:

  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 numeric vector.

See Also

rav, rAverage-package

Examples

1
2
3
4
5
6
7
## Not run: 
data(fmdata1)
fm1 <- rav(fmdata1, lev=c(3,3))
coef(fm1)
coef(fm1, whichModel="EAM")

## End(Not run)

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