How each method is checked
- Several test datasets are analysed on FieldTrialHub: published example data from the R package agricolae where it has one, and simulated datasets with different sizes, decimals, shuffled row order, missing plots and awkward labels.
- The same analyses are run in R with the reference functions listed below.
- Every number is compared: sums of squares, degrees of freedom, F and p values, means, standard errors, effects and variance components. Statistics must agree to a relative difference of 10−9; p-values, which depend on the numerical routine for the distribution, to 10−6. Letter groupings must be identical.
- The Download R script of each tool is generated for every test case, run in R, and its results compared with the website in the same way.
Reference software: R 4.3.3, agricolae 1.3-8, emmeans 1.10.0, multcompView 0.1.9. Last full run: 3 December 2026.
Rounded display, full-precision comparison
The tables in the tools, in the reports and on this page show rounded values, usually to 4 or 5 decimals. The comparisons with R are made on the full-precision numbers (about 15 significant digits), before any rounding, using the tolerances above.
Two programs that agree to 15 digits can still print a different last digit when a value lies almost exactly halfway between two rounded values. An example from the tests: for the SCA effect of LT-8 × TPS-67, FieldTrialHub computes 0.5187499999999994 and R computes 0.51875, a relative difference of about 10−15. Rounded to four decimals they print as 0.5187 and 0.5188. Such differences in the last printed digit are a property of rounding, not of the method, and the calculations are never adjusted to make printed values look identical.
Results
| Tool | R reference | Test cases | Numbers matching R | Letter groupings |
|---|---|---|---|---|
| ANOVA, factorial, correlation, descriptive | aov, agricolae HSD.test, LSD.test, duncan.test, cor.test, quantile (type 7) | CRD and RCBD, balanced and with missing plots; factorial in CRD and RCBD | 361 of 361 | 14 of 14 |
| Split-plot Pro | agricolae::sp.plot; HSD.test, LSD.test, duncan.test with Error (a) and Error (b) | 4 datasets (incl. agricolae plots) × Tukey, LSD, Duncan; α 0.05 and 0.01 | 426 of 426 | 57 of 57 |
| Augmented RCBD Pro | lm, emmeans, multcompView; ANOVA partitions and standard errors also against agricolae::DAU.test | 4 datasets (incl. the DAU.test example) × LSD, Tukey | 4832 of 4832 | 8 of 8 |
| Alpha-lattice Pro | lm (sequential ANOVA), emmeans (adjusted means, pairwise tests), multcompView | 4 datasets (2 to 4 replications, missing plots, block numbers within or across replications) × LSD, Tukey | 4378 of 4378 | 8 of 8 |
| Line × tester Pro | aov with the Singh and Chaudhary formulas; internal values of agricolae::lineXtester | 4 datasets (incl. agricolae heterosis), with and without parents | 474 of 474 | – |
| Multi-location Pro | agricolae::AMMI, lm, bartlett.test, svd; HSD.test, LSD.test, duncan.test | 4 datasets (incl. agricolae plrv; 2 to 6 environments) × environments fixed or random | 1164 of 1164 | 6 of 6 |
Pro methods: 11,274 numbers and 79 letter groupings compared, all matching. The downloadable R scripts reproduced every one of them.
Where FieldTrialHub differs from an R package on purpose
In these cases FieldTrialHub deliberately does not copy the output of an R package, because the package uses a different convention or contains an error. The comparisons above use the corrected or documented reference in each case.
- Split-plot, blocks: agricolae::sp.plot tests blocks against Error (b). FieldTrialHub tests them against Error (a), because blocks and main plots share the main-plot stratum (Gomez and Gomez 1984). The R script prints both.
- Augmented RCBD, letters: agricolae::DAU.test prints the correct standard error for a test entry vs a check, (1 + 1/b + 1/c − 1/(bc)) × MSE, but its letters use + 1/(bc). Its letter routine was also written for comparisons with equal standard errors and can give letters that contradict its own p-values. FieldTrialHub uses the exact variances (they match emmeans) and a letter display that matches multcompView.
- Line × tester, full-sib covariance: in agricolae::lineXtester a line break drops the term 6r Cov(HS) − r(l + t) Cov(HS) from Cov(FS). FieldTrialHub uses the complete formula; all other values match its internal (unrounded) results.
- AMMI table: agricolae::AMMI rounds the sums of squares of the principal components, so the exact reference is svd of the interaction matrix, which gives the same scores as agricolae's biplot.
Examples
A few values from the test runs, as computed on the website and in R, rounded for display. Where the last digit differs (SCA below), the full-precision values agree to about 10−15; see Rounded display, full-precision comparison above.
Split-plot (agricolae plots data, Tukey)
| Value | FieldTrialHub | R |
|---|---|---|
| F, main plot A | 0.1081 | 0.1081 |
| F, subplot B | 3.4581 | 3.4581 |
| F, A × B | 34.8903 | 34.8903 |
| p, A × B | 0.0001119 | 0.0001119 |
| CV(a) % | 24.8144 | 24.8144 |
| CV(b) % | 35.9132 | 35.9132 |
Augmented RCBD (DAU.test example data)
| Value | FieldTrialHub | R |
|---|---|---|
| Treatments adjusted, SS | 285.09524 | 285.09524 |
| Adjusted mean, entry g | 73.25000 | 73.25000 |
| Adjusted mean, entry h | 93.50000 | 93.50000 |
| SE, test entry | 5.60960 | 5.60960 |
| SE of difference, test vs check | 6.36069 | 6.36069 |
Alpha-lattice (simulated, 30 genotypes, 3 replications)
| Value | FieldTrialHub | R |
|---|---|---|
| Genotypes adjusted, F | 4.25920 | 4.25920 |
| Blocks adjusted, F | 8.58774 | 8.58774 |
| Adjusted mean, G01 | 6.04506 | 6.04506 |
| SE, G01 | 0.22223 | 0.22223 |
| Average SE of difference | 0.32170 | 0.32170 |
| Efficiency vs RCBD % | 222.75903 | 222.75903 |
Line × tester (agricolae heterosis data)
| Value | FieldTrialHub | R |
|---|---|---|
| Lines, F | 3.6316 | 3.6316 |
| Lines × testers, F | 7.3892 | 7.3892 |
| GCA, line TPS-25 | 0.4143 | 0.4143 |
| SCA, LT-8 × TPS-67 | 0.5187 | 0.5188 |
| Cov H.S. (average) | 0.00387 | 0.00387 |
| σ²D, F = 0 | 0.11282 | 0.11282 |
Multi-location (agricolae plrv data, 6 environments)
| Value | FieldTrialHub | R |
|---|---|---|
| Environments, F | 257.03818 | 257.03818 |
| G × E, F | 4.75307 | 4.75307 |
| Bartlett χ² | 83.05411 | 83.05411 |
| AMMI PC1, % of G × E | 56.26088 | 56.26088 |
| Stability b, genotype 102.18 | 0.70769 | 0.70769 |
Test data
The simulated test datasets can be downloaded and analysed in R: fieldtrialhub-validation-data.zip. The other test datasets are the example data of the agricolae package (plots, heterosis, plrv and the DAU.test example), which you can load in R with data().
Found a result that does not match R? Please tell us with the data and the R code.