GxE_build_interaction_matrix: Compute interaction matrix for AMMI or GGE model

Description Usage Arguments Details Value Author(s) See Also

View source: R/GxE_build_interaction_matrix.R

Description

GxE_build_interaction_matrix computes interaction matrix for AMMI or GGE model

Usage

1

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"

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).

Value

The function returns the interaction matrix

Author(s)

Pierre Riviere

See Also

model_GxE


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