fitted.asreml {asreml} | R Documentation

## Extract fitted values.

### Description

Extracts fitted values from an `asreml` object.

### Usage

    ## S3 method for class 'asreml'
    fitted(
      object,
      type = c("response", "link"),
      value = c("cell", "cumulative"),
      ...
    )

### Arguments

`object` | An `asreml` object.
`type` | if `"link"`, the linear fit on the link scale, otherwise, if `"response"`, the fitted values obtained by transforming the linear predictors by the inverse link function.
`value` | if `type ="response"` and `object` is a multinomial threshold model, then `value="cell"` returns cell probabilities, else if `value="cumulative"` then cumulative probabilities are returned.
`...` | Additional arguments.

### Value

A numeric vector of fitted values.

### Examples

    ## Not run:
    data(oats)
    oats.asr <- asreml(yield ~ Variety*Nitrogen, random = ~ Blocks/Wplots, data=oats)
    fitted(oats.asr)

    ## End(Not run)

[Package asreml version 4.1.0.176 Index]