Performs a stability analysis based on the geometric mean (GAI), according to the following model:
gai(.data, env, gen, rep, resp, verbose = TRUE)
The dataset containing the columns related to Environments, Genotypes, replication/block and response variable(s).
The name of the column that contains the levels of the environments.
The name of the column that contains the levels of the genotypes.
The name of the column that contains the levels of the replications/blocks.
The response variable(s). To analyze multiple variables in a
single procedure use, for example, resp = c(var1, var2, var3)
.
Logical argument. If verbose = FALSE
the code will run
silently.
An object of class gai
, which is a list containing the results
for each variable used in the argument resp
. For each variable, a
tibble with the following columns is returned.
GEN the genotype's code.
GAI Geometric adaptability index
GAI_R The rank for the GAI value.
Shahbazi, E. 2019. Genotype selection and stability analysis for seed yield of Nigella sativa using parametric and non-parametric statistics. Sci. Hortic. (Amsterdam). 253:172-179. doi:10.1016/j.scienta.2019.04.047.
# NOT RUN {
library(metan)
out <- gai(data_ge2, ENV, GEN, REP, c(EH, PH, EL, CD, ED, NKE))
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab