Skip to contents

Extract the residuals for a fitted Finlay-Wilkinson model.

Usage

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

Arguments

object

An object of class FW

...

Not used.

Value

A data.frame with residuals.

See also

Other Finlay-Wilkinson: fitted.FW(), gxeFw(), plot.FW(), report.FW()

Examples

## Run Finlay-Wilkinson analysis.
geFW <- gxeFw(TD = TDMaize, trait = "yld")

## Extract residuals.
residFW <- residuals(geFW)
head(residFW)
#>   trial genotype     residual
#> 1 HN96b     G001 -114.9147404
#> 2 HN96b     G002  106.8573585
#> 3 HN96b     G003  -70.5545844
#> 4 HN96b     G004   -0.9377086
#> 5 HN96b     G005   -7.1099130
#> 6 HN96b     G006  110.9616180