resid.asreml | R Documentation

## Use resid() on a asreml object

### Description

This is a method for the function `resid()` for objects inheriting from class `asreml`. See `resid()` for the general behavior of this function.

### Usage

    resid(object, type = c("deviance", "pearson", "working", "response"),
    spatial = c("trend", "plot"))

### Arguments

`object` | a `asreml` object.
`type` | type of residuals, with choices `"deviance", "pearson", "working"` or `"response"`; `"deviance"` is the default.
`spatial` | if a second independent error term has been fitted by including `units` in the random formula, the residuals will have the `units` BLUPs added if `spatial = "plot"`.

### Value

the vector of residuals.

### See Also

`asreml` `summary.asreml`