model_GxE runs AMMI or GGE model

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"

Value

The function returns a list with three elements :

  • info : a list with variable and gxe_analysis

  • ANOVA a list with five elements:

    • model

    • anova_model

    • germplasm_effects a list of two elements:

      • effects

      • intra_variance

    • location_effects

    • interaction_matrix

  • PCA : PCA object from FactoMineR

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.

See also