When to use it
You tested several genotypes (varieties, hybrids, lines) across several environments (locations, years, site-years) and want to understand the genotype × environment interaction: which genotypes are broadly stable and which are specifically adapted to particular environments.
When not to: A single environment (there is no genotype x environment interaction to decompose; use ordinary one-way ANOVA), an incomplete table with genotypes missing from some environments, or when the interaction explains very little of the total variance (in which case the plain two-way ANOVA main effects already tell the whole story and the biplot adds noise, not insight).
Step by step
Open it from the menu
Click DOE in the menu bar; under Field Trials choose AMMI (Genotype × Environment).
Fill in the form
Choose the columns: What you measured, Varieties (genotypes), Environments (sites), Replicates (optional). The form lists only columns whose type fits each field.
Check the options
The options start at their defaults: Alpha. Change one only when your question needs it.
Run the analysis
Press Run analysis. The Result Card opens on its Results tab.
What to choose in the form
| What you measured Response required | One numeric column. The continuous response (e.g. yield). |
|---|---|
| Varieties (genotypes) Genotype required | One categorical or ordered categorical column. Genotype / variety factor (2+ levels). |
| Environments (sites) Environment required | One categorical or ordered categorical column. Environment / location factor (2+ levels). |
| Replicates (optional) Rep | One categorical or ordered categorical column. Optional replicate / block column (used only to label reps). |
| Alpha | Significance threshold for the ANOVA F-tests. Default: 0.05. |
How to read the card
The Results tab starts with what to know first (rows left out, checks that did not pass), then the interpretation in words and the Key Results; charts and assumption checks follow further down. Learn More explains the method in plain words. Read a Result Card covers all four tabs.
What it assumes
- Normality (of residuals, not of the raw data)
If it does not hold: Non-normal within-cell residuals make the ANOVA F-tests on genotype, environment, and their interaction approximate rather than exact, especially with few replicates.
How to check: Shapiro-Wilk on the within-cell residuals (for 3 to 5000 residuals), reported directly on the card when the design is replicated; not run at all on an unreplicated design, where there is no residual to test.
A worked example
Twelve wheat varieties are trialled at four locations over one season, with three replicate blocks per location (a complete 12 x 4 table).
Result: The two-way ANOVA finds significant genotype, environment and genotype x environment effects; IPCA1 and IPCA2 together explain 78% of the interaction sum of squares. Two varieties sit near the AMMI1 origin on the interaction axis with above-average main-effect yield.
Those two varieties are the broadly adapted 'safe choices' across all four locations; varieties with large IPCA1 scores are specifically adapted to whichever locations share their sign and should be recommended only there, not everywhere.
From the Statistics Library.
The code tabs
Code gives this analysis as Python, R and MATLAB code (and SAS where the tab offers it), reading the data the way KernelStats did. Export sends the card to a report or to slides. See The Code tab.
Understand the statistics
Ask Oobi
Type one of these into Ask Oobi beside your data:
- Across my three trial sites, which wheat varieties yield consistently well everywhere, and which win only at specific locations?
- Explain the AMMI (genotype × environment analysis) in plain words.
- What does interaction effect mean?
Last reviewed November 16, 2026.
