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",
  "pearson", "response", "stdCond"), spatial = c("trend", "plot"), ...)

Arguments

object

An asreml object.

type

Type of residuals: "deviance", "pearson", "working", "response", "response" or "stdCond". Default is "deviance".

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.

Value

A numeric vector containing the model residuals.


[Package asreml version 4.1.0.106 Index]