R/GxE_build_interaction_matrix.R
GxE_build_interaction_matrix.Rd
GxE_build_interaction_matrix
computes interaction matrix for AMMI or GGE model
GxE_build_interaction_matrix(data, gxe_analysis)
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" |
The function returns the interaction matrix
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).