Description Usage Arguments Details Value Author(s) See Also
View source: R/GxE_build_interaction_matrix.R
GxE_build_interaction_matrix
computes interaction matrix for AMMI or GGE model
1 | 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 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).
The function returns the interaction matrix
Pierre Riviere
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.