# predict.gge: Predict a two-way table based on GGE model In metan: Multi Environment Trials Analysis

## Description

Predict the means for a genotype-vs-environment trial based on a Genotype plus Genotype-vs-Environment interaction (GGE) model.

## Usage

 1 2 ## S3 method for class 'gge' predict(object, naxis = 2, output = "wide", ...) 

## Arguments

 object An object of class gge. naxis The the number of principal components to be used in the prediction. Generally, two axis may be used. In this case, the estimated values will be those shown in the biplot. output The type of output. It must be one of the 'long' (default) returning a long-format table with the columns for environment (ENV), genotypes (GEN) and response variable (Y); or 'wide' to return a two-way table with genotypes in the row, environments in the columns, filled by the estimated values. ... Currently not used.

## Details

This function is used to predict the response variable of a two-way table (for examples the yielding of g genotypes in e environments) based on GGE model. This prediction is based on the number of principal components used. For more details see Yan and Kang (2007).

## Value

A two-way table with genotypes in rows and environments in columns if output = "wide" or a long format (columns ENV, GEN and Y) if output = "long" with the predicted values by the GGE model.

## Author(s)

Tiago Olivoto tiagoolivoto@gmail.com

## References

Yan, W., and M.S. Kang. 2003. GGE biplot analysis: a graphical tool for breeders, geneticists, and agronomists. CRC Press.

## Examples

 1 2 3 library(metan) mod <- gge(data_ge, GEN, ENV, c(GY, HM)) predict(mod) 

metan documentation built on Nov. 10, 2021, 9:11 a.m.