MyNixOS website logo
Description

Comprehensive Statistical Tools for Agricultural Research.

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

aridagri

R-CMD-check License: GPL-3 DOI

Comprehensive Statistical Tools for Agricultural Research

aridagri is a comprehensive R package providing 35+ functions for statistical analysis in agricultural research, with special focus on experimental design analysis and agronomic calculations.

Key Features

  • 🔬 Complete ANOVA Suite: All experimental designs with proper error terms
  • 📊 Multiple Post-Hoc Tests: LSD, Duncan, Tukey, SNK, Scheffé, Bonferroni, Dunnett
  • 📈 Stability Analysis: 7 methods (Eberhart-Russell, AMMI, Finlay-Wilkinson, Shukla, Wricke, CV, Superiority)
  • 🌡️ Thermal Indices: GDD, HTU, PTU, Heat Use Efficiency
  • 🌱 Crop Growth Analysis: CGR, RGR, NAR, LAI
  • 📋 Publication-Ready Output: Formatted tables with SE, CD, CV

Installation

# Install devtools if needed
install.packages("devtools")

# Install aridagri from GitHub
devtools::install_github("lalitrolaniya/aridagri")

Function Overview

Experimental Design ANOVA (17 Functions)

FunctionDesign
anova_crd()Completely Randomized Design
anova_rbd()Randomized Block Design
anova_rbd_pooled()Pooled RBD (Multi-Environment)
anova_latin()Latin Square Design
anova_factorial()Two-Factor Factorial
anova_factorial_3way()Three-Factor Factorial
anova_spd()Split Plot Design
anova_spd_ab_main()SPD with (A×B) in Main Plot
anova_spd_c_main_ab_sub()SPD with C Main, (A×B) Sub
anova_spd_ab_cd()SPD with (A×B) Main, (C×D) Sub
anova_spd_pooled()Pooled Split Plot Design
anova_sspd()Split-Split Plot Design
anova_sspd_pooled()Pooled SSPD
anova_strip()Strip Plot Design
anova_augmented()Augmented Block Design
anova_alpha_lattice()Alpha Lattice Design

Post-Hoc Tests (8 Methods)

All available via perform_posthoc():

  • Fisher's LSD
  • Duncan's Multiple Range Test (DMRT)
  • Tukey's HSD
  • Student-Newman-Keuls (SNK)
  • Scheffé's Test
  • Bonferroni Correction
  • Dunnett's Test (vs Control)

Agronomic Analysis (6 Functions)

FunctionAnalysis
stability_analysis()7-method stability analysis
thermal_indices()GDD, HTU, PTU, HUE
crop_growth_analysis()CGR, RGR, NAR, LAI
harvest_index()HI and partitioning
yield_gap_analysis()Yield gap calculations
economic_indices()B:C ratio, net returns

Statistical Analysis (4 Functions)

FunctionAnalysis
correlation_analysis()Correlation matrix with significance
pca_analysis()Principal Component Analysis
path_analysis()Path coefficients
sem_analysis()Structural Equation Modeling

Nutrient Analysis (3 Functions)

FunctionAnalysis
nue_calculate()Nutrient Use Efficiency indices
nutrient_response()Response curve analysis
economic_analysis()Economic optimum

Quick Examples

Split-Split Plot Design ANOVA

library(aridagri)

data <- expand.grid(
  rep = 1:3,
  irrigation = c("I1", "I2", "I3"),
  variety = c("V1", "V2"),
  nitrogen = c("N0", "N40", "N80")
)
data$yield <- rnorm(nrow(data), 1200, 150)

result <- anova_sspd(data, 
                     response = "yield",
                     main_plot = "irrigation",
                     sub_plot = "variety",
                     sub_sub_plot = "nitrogen",
                     replication = "rep")

Stability Analysis (7 Methods)

data <- expand.grid(
  variety = paste0("V", 1:10),
  location = paste0("L", 1:5),
  rep = 1:3
)
data$yield <- rnorm(nrow(data), 1200, 200)

stability_analysis(data, 
                   genotype = "variety",
                   environment = "location",
                   replication = "rep",
                   trait = "yield",
                   method = "all")

Unique Features

  1. First R package with ALL split plot design variations
  2. Complete SE/CD calculations for every comparison type
  3. 7 stability analysis methods in single function
  4. Integrated thermal indices (GDD, HTU, PTU, HUE)
  5. Crop growth analysis (CGR, RGR, NAR, LAI)
  6. Publication-ready formatted output

Citation

Rolaniya, L.K., Jat, R.L., Punia, M., and Choudhary, R.R. (2026). aridagri: 
Comprehensive Statistical Tools for Agricultural Research. 
R package version 2.0.3. https://github.com/lalitrolaniya/aridagri

Authors

Lalit Kumar Rolaniya (Maintainer) Scientist (Agronomy) ICAR-Indian Institute of Pulses Research, Regional Centre, Bikaner, Rajasthan-334006, India ORCID: 0000-0001-8908-1211

Ram Lal Jat Senior Scientist (Agronomy) ICAR-Indian Institute of Pulses Research, Regional Centre, Bikaner, Rajasthan-334006, India ORCID: 0009-0003-4339-0555

Monika Punia Scientist (Genetics & Plant Breeding) ICAR-Indian Institute of Pulses Research, Regional Centre, Bikaner, Rajasthan-334006, India ORCID: 0009-0002-0294-6767

Raja Ram Choudhary Scientist (Agronomy) ICAR-Indian Institute of Groundnut Research, Regional Research Station, Bikaner, Rajasthan-334006, India


Acknowledgments

The authors gratefully acknowledge ICAR-Indian Institute of Pulses Research, Kanpur for providing necessary support and infrastructure for the development of this package.


License

GPL-3


Contributing

Contributions are welcome! Please feel free to submit issues or pull requests.

Metadata

Version

2.0.3

License

Unknown

Platforms (78)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    uefi
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-uefi
  • aarch64-windows
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-linux
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-uefi
  • x86_64-windows