Learn R Programming

statgenGxE (version 1.0.2)

residuals.AMMI: Extract residuals.

Description

Extract the residuals for the fitted AMMI model.

Usage

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

Arguments

object

An object of class AMMI

...

Not used.

Value

A data.frame with residuals.

See Also

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

Examples

Run this code
# NOT RUN {
## 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