Learn R Programming

statgenGxE (version 1.0.9)

residuals.AMMI: Extract residuals.

Description

Extract the residuals for the fitted AMMI model.

Usage

# S3 method for AMMI
residuals(object, ...)

Value

A data.frame with residuals.

Arguments

object

An object of class AMMI

...

Not used.

See Also

Other AMMI: fitted.AMMI(), gxeAmmi(), plot.AMMI(), report.AMMI()

Examples

Run this code
## Run AMMI analysis on TDMaize.
geAmmi <- gxeAmmi(TD = TDMaize, trait = "yld")

## Extract residuals.
residAmmi <- residuals(geAmmi)
head(residAmmi)

Run the code above in your browser using DataLab