model_GxE: Run AMMI or GGE model

Description Usage Arguments Details Value Author(s) See Also

View source: R/model_GxE.R

Description

model_GxE runs AMMI or GGE model

Usage

1
model_GxE(data, variable, gxe_analysis = "AMMI")

Arguments

data

The data frame on which the model is run. It should come from format_data_PPBstats.data_agro

variable

variable to analyse

gxe_analysis

the analysis to carry out: "AMMI" or "GGE"

Details

scaling for interaction.matrix is not useful as the column mean is equal to 0 because of model constraints and all the values are regarding one variable, so it is possible to compare it into the PCA.

More information can be found in the book regarding AMMI and GGE.

Value

The function returns a list with three elements :

Author(s)

Pierre Riviere

See Also


priviere/PPBstats documentation built on May 6, 2021, 1:20 a.m.