The Additive Main Effects and Multiplicative Interaction (AMMI) model fits
a model which involves the Additive Main effects (i.e. genotype and trial)
along with Multiplicative Interaction effects. The additive effects are the
classical ANOVA main effects for genotype and environment, the
multiplicative effects follow from a principal component analysis on the
interaction residuals (= genotype by environment means after adjustment for
additive genotype and environment effects). This results in an interaction
characterized by Interaction Principal Components (IPCA) enabling
simultaneous plotting of genotypes and trials.
The parameter nPC
is used to indicate the number of principal
components that is used in the principal component analysis (PCA). By setting
this parameter to NULL
the algorithm determines the best number of
principal components (see Details).
By specifying the parameter byYear = TRUE
, a separate analysis will be
done for every year in the data. Combining the option with nPC = NULL
may result in different numbers of principal components per year. The AMMI
estimates will still be returned as a single data.frame, but the other
results will be either lists or arrays.
gxeAmmi(
TD,
trials = names(TD),
trait,
nPC = 2,
byYear = FALSE,
center = TRUE,
excludeGeno = NULL,
useWt = FALSE
)
An object of class TD
.
A character string specifying the trials to be analyzed. If not supplied, all trials are used in the analysis.
A character string specifying the trait to be analyzed.
An integer specifying the number of principal components used
as multiplicative term of genotype-by-trial interaction. If NULL
, the
number of principal components is determined by the algorithm using
forward selection. See details.
Should the analysis be done by year? If TRUE
the data
is split by the variable year, analysis is performed and the results are
merged together and returned.
Should the variables be shifted to be zero centered?
An optional character vector with names of genotypes to
be excluded from the analysis. If NULL
, all genotypes are used.
Should weighting be used when modeling? Requires a column
wt
in TD
.
An object of class AMMI
, a list containing:
A matrix with environmental scores.
A matrix with genotypic scores.
A data.frame containing the importance of the principal components.
A data.frame containing anova scores of the AMMI analysis.
A data.frame containing fitted values from the AMMI model.
A character string containing the analyzed trait.
A numerical vector containing the environmental means.
A numerical vector containing the genotypic means.
A numerical value containing the overall mean.
First a linear model \(trait = genotype + trial + \epsilon\) is fitted with
both genotype and trial fixed components in the model.
The residuals from the fitted model are then used in a PCA. If nPC
is
not NULL
a single PCA is done using prcomp
with
maximum rank nPC
.
In case nPC = NULL
, the PCA is first done with one PC. Then using
forward selection one by one the number of PCs is increased as long as the
added component is significant in the analysis.
AMMI estimates are then computed using the results of the PCA.
Gauch H.G. (1992) Statistical Analysis of Regional Yield Trials: AMMI Analysis of Factorial Designs. Elsevier, Amsterdam.
Yan, W., Kang, M. (2002). GGE Biplot Analysis. Boca Raton: CRC Press.
Other AMMI:
fitted.AMMI()
,
plot.AMMI()
,
report.AMMI()
,
residuals.AMMI()
# NOT RUN {
## Run AMMI analysis on TDMaize.
geAmmi <- gxeAmmi(TD = TDMaize, trait = "yld")
## Summarize results.
summary(geAmmi)
## Create a biplot of genotypes and environment interaction with PC1 and PC2.
plot(geAmmi, plotType = "AMMI2")
## Create a pdf report summarizing the results.
# }
# NOT RUN {
report(geAmmi, outfile = tempfile(fileext = ".pdf"))
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab