Skip to content

aridagri

2.0.4Package record

Comprehensive Statistical Tools for Agricultural Research

0packages depend
12.4Kdownloads / year
48.4%test coverage
13/13flavors OK

Overview

About

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).

Changes in 2.0.4

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() and anova_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 returned anova_table now 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 independent aov() Error()-strata models.
Show all changes in 2.0.4Hide the rest of the changes in 2.0.4
  • anova_spd_pooled() and anova_sspd_pooled() (combined analysis over environments) now test each source against the correct pooled error. Both functions previously reported a single-stratum anova() 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 returned anova_table gives the correct F- and p-values for every stratum, the objects now carry per-stratum coefficients of variation, and anova_sspd_pooled() now returns factor means for plotting. Verified against independent aov() Error()-strata models.
  • perform_posthoc() can now be called directly without pre-computing the error mean square and error degrees of freedom. When mse or df_error are not supplied they are derived from the fitted model. This fixes errors in the Bonferroni method and in the manual (no agricolae) 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 multcomp is installed.
  • verbose = FALSE is now fully respected by anova_crd(), anova_rbd() and anova_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 of verbose.
  • 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 supports format = "csv" in addition to "xlsx" and raises a clear error for unsupported formats.

Other changes

  • Added grDevices, graphics, stats and utils to Imports.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 1.6 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK12 OK2026-04-25
  • NOTE13 OK, 1 NOTE2026-03-10
Advisories

none known

Documentation

In release 2.0.4
READMEYes · 685 wordsVignettesNoNEWSYes · 100% structured · mentions 2.0.4Citation fileNoWebsitenot declared in DESCRIPTION
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

12.4K
CRAN downloads in the past year
Rank #6,573 · ~34/day · ~1K/mo
Daily download trend is not available in this view yet.
36430 days
1.3K90 days
12.4K1 year
Compare downloads with other packages →
Also on87 r2u21 autocran

Repository

7Stars
3Forks
0Open issues
0Open PRs
2Releases
35Commits
2Commit identities
agronomyanovacrancrop-scienceexperimental-designfield-experimentsgenotype-environment-interactionmulti-environment-trials
License file reads as GPL-3.0 · 35 commits · Last activity 2026-07-11 · +16.7% stars, 30d
Responsiveness
not measured

Stars over time

2026-02-26 · 12026-10-20 · 7
PracticesBeta

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.

Reproducibility and dev environment (1)
Dockerfile
Research and citation (1)
CITATION.cff
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
15 external dependencies (excludes base and recommended)

Installing aridagri adds no packages beyond those that come with R.

Depends (1)
R >= 4.0.0
Imports (4)
grDevicesgraphicsstatsutils
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (4)
Author, Maintainer since 2.0.3 (2026)
Releases (2)

Pick two releases to compare their code metrics.

  • 2.0.4Latest
    record
    2026-07-10 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 2.0.3
    record
    2026-02-24
  • R
    R 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
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("aridagri")
Rolaniya, L. K., Choudhary, R. R., Jat, R. L., & Punia, M. (2026). aridagri: Comprehensive Statistical Tools for Agricultural Research (Version 2.0.4) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for aridagri version 2.0.4 [Data set]. HJJB, LLC. Data release v2026-10-26. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy