GxE_build_interaction_matrix computes interaction matrix for AMMI or GGE model

GxE_build_interaction_matrix(data, gxe_analysis)

Arguments

data

The data frame on which the model is run. It should have at least the following columns : c("year", "germplasm", "location", "block", "X", "Y", "..."), with "..." the variables.

gxe_analysis

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

Value

The function returns the interaction matrix

Details

The computation is inspired from agricolae::AMMI. Another way to do was explored but did not succeed regarding missing data. The code is inside the function within a if(FALSE).

See also