fitted: Extract fitted values from an averaging model

Description Usage Arguments Details Value See Also Examples

Description

Function to extract fitted values from an object returned by rav.

Usage

1
fitted(object, ...)

Arguments

object

An object of class rav containing an estimated averaging model.

...

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:

  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 matrix of numeric values.

See Also

rav, rAverage-package

Examples

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

## End(Not run)

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