Comprehensive Statistical Tools for Agricultural Research
Overview
A comprehensive suite of statistical and analytical tools for agricultural research. Includes complete analysis of variance (ANOVA) functions for all experimental designs: Completely Randomized Design (CRD), Randomized Block Design (RBD), Pooled RBD, Split Plot with all variations, Split-Split Plot, Strip Plot, Latin Square, Factorial, Augmented, and Alpha Lattice, with proper error terms and comprehensive Standard Error (SE) and Critical Difference (CD) calculations. Features multiple post-hoc tests: Least Significant Difference (LSD), Duncan Multiple Range Test (DMRT), Tukey Honestly Significant Difference (HSD), Student-Newman-Keuls (SNK), Scheffe, Bonferroni, and Dunnett, along with assumption checking and publication-ready output. Advanced methods include stability analysis using Eberhart-Russell regression, Additive Main Effects and Multiplicative Interaction (AMMI), Finlay-Wilkinson regression, Shukla stability variance, Wricke ecovalence, Coefficient of Variation (CV), and Cultivar Superiority Index as described in Eberhart and Russell (1966) doi:10.2135/cropsci1966.0011183X000600010011x. Thermal indices include Growing Degree Days (GDD), Heliothermal Units (HTU), Photothermal Units (PTU), and Heat Use Efficiency (HUE). Crop growth analysis covers Crop Growth Rate (CGR), Relative Growth Rate (RGR), Net Assimilation Rate (NAR), and Leaf Area Index (LAI). Also provides harvest index, yield gap analysis, economic efficiency indices (Benefit-Cost ratio), nutrient use efficiency calculations, correlation matrix, Principal Component Analysis (PCA), path analysis, and Structural Equation Modeling (SEM). Statistical methods follow Gomez and Gomez (1984, ISBN:0471870927) and Panse and Sukhatme (1985, ISBN:8170271169).
Bug fixes
anova_spd()split-plot ANOVA: the main-plot error term (Error a) and the sub-plot sum of squares are now extracted from the ANOVA table by term name rather than by fixed row position. Because R orders main-effect terms ahead of interaction terms, the previous positional extraction swapped the sub-plot effect with Error(a), which produced incorrect main-plot and sub-plot F-tests and an incorrect Error(a) mean square, main-plot standard error, critical difference and CV(a). Sub-plot standard error, critical difference and CV(b), and the returned ANOVA table itself, were not affected.anova_spd_ab_main(),anova_spd_c_main_ab_sub(),anova_spd_ab_cd()andanova_sspd()now test each effect against its correct error term. Previously these functions reported the raw combined ANOVA, in which the main-plot (and, for the split-split design, sub-plot) factors were tested against the residual rather than against the properly pooled main-plot / sub-plot error. The returnedanova_tablenow gives the correct F-values and p-values for every stratum, and the objects carry the corresponding error mean squares, degrees of freedom and CVs. Verified against independentaov()Error()-strata models.
Show all changes in 2.0.4Hide the rest of the changes in 2.0.4
anova_spd_pooled()andanova_sspd_pooled()(combined analysis over environments) now test each source against the correct pooled error. Both functions previously reported a single-stratumanova()table in which every effect was tested against one residual, so the environment main effect and the main-plot (and, for the split-split design, sub-plot) factors were tested against the sub-sub-plot residual rather than against their own pooled errors. Treating environments as fixed and replications as random within environment, the environment effect is now tested against the environment/replication error (E:Rep), the main-plot factors against the pooled main-plot error, and the sub-plot and sub-sub-plot factors against their respective pooled errors. The returnedanova_tablegives the correct F- and p-values for every stratum, the objects now carry per-stratum coefficients of variation, andanova_sspd_pooled()now returns factor means for plotting. Verified against independentaov()Error()-strata models.perform_posthoc()can now be called directly without pre-computing the error mean square and error degrees of freedom. Whenmseordf_errorare not supplied they are derived from the fitted model. This fixes errors in the Bonferroni method and in the manual (noagricolae) fallbacks for LSD and Tukey.- Fixed Dunnett's test: the comparison is now built against the actual treatment factor supplied by the user instead of a hard-coded factor name, so it works correctly when
multcompis installed. verbose = FALSEis now fully respected byanova_crd(),anova_rbd()andanova_latin(); these no longer print post-hoc and assumption-check output when silent operation is requested. Result objects are unchanged and still contain the full post-hoc and diagnostic components regardless ofverbose.arid_plot()now draws factor or treatment means for every ANOVA design (factorial, three-way factorial, Latin square, all split-plot and split-split-plot variants, strip-plot, alpha lattice and the pooled designs), not only CRD and RBD. Designs with several factors are shown as a multi-panel bar chart, one panel per factor, with standard-deviation whiskers where available. Objects that expose no factor-means table return quietly with an informative message instead of an error.arid_plot()produces plots using base graphics for correlation objects (a heatmap of the correlation matrix) and stability objects (a bar chart of the integrated stability ranking); it previously returned without plotting.export_results()now supportsformat = "csv"in addition to"xlsx"and raises a clear error for unsupported formats.
Other changes
- Added
grDevices,graphics,statsandutilstoImports.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK12 OK2026-04-25
- NOTE13 OK, 1 NOTE2026-03-10
Documentation
- Help pages
- 35includes a package overview page
- Examples that run
- 94%29 run in a plain check · 2 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 94%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 3%
Downloads
Repository
Stars over time
Forks over time
Releases over time
Commits over time
Commit identities over time
2 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/lalitrolaniya/aridagri on 2026-10-25.
Dependencies
Installing aridagri adds no packages beyond those that come with R.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 2.0.4Latest
- RR 4.6.0 released · 2026-04-24
- 2.0.32026-02-24
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2026-02-24
- Total releases
- 2 / 1 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 4.0.0
- Download size
- 81 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("aridagri")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
The repository also keeps a CITATION.cff.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-26, which the citation names so these numbers can be found later. More on citing and the projects behind them.