residuals.asreml {asreml} | R Documentation

## Extract model residuals.

### Description

Extracts residuals from `asreml` objects.

### Usage

    ## S3 method for class 'asreml'
    residuals(
      object,
      type = c("working", "deviance", "stdDeviance", "pearson", "response", "stdCond"),
      spatial = c("trend", "plot"),
      ...
    )

### Arguments

`object` | An `asreml` object.
`type` | Type of residuals: `"working"`, `"deviance"`, `stdDeviance`, `"pearson"`, `"response"`, or `"stdCond"`. Default is `"working"`.
`spatial` | If a second independent error term has been fitted by including `units` in the random formula, the residuals will have the `units` E-BLUPs added if `spatial = "plot"`; the default is `spatial = "trend"`.
`...` | Additional arguments.

### Details

For multinomial threshold models with t thresholds, cell residuals are returned in a vector ordered as t thresholds within units.

### Value

A numeric vector containing the model residuals.

[Package asreml version 4.1.0.176 Index]