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, options are: "deviance", "pearson", "working", "response", "response" or "stdCond" (default = "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 "plot" (default = "trend").

...

Additional arguments.

Value

A numeric vector containing the model residuals.


[Package asreml version 4.2.0.480 Index]