Learn R Programming

aridagri (version 2.0.3)

anova_sspd: Split-Split Plot Design ANOVA

Description

Performs complete ANOVA for Split-Split Plot Design with proper error terms for main plot, sub-plot, and sub-sub-plot factors. Generates publication-ready ANOVA table with significance levels.

Usage

anova_sspd(
  data,
  response,
  main_plot,
  sub_plot,
  sub_sub_plot,
  replication,
  verbose = TRUE
)

Value

List containing ANOVA table, means, and significance tests

Arguments

data

Data frame containing the experimental data

response

Name of the response variable (as string)

main_plot

Name of main plot factor

sub_plot

Name of sub-plot factor

sub_sub_plot

Name of sub-sub-plot factor

replication

Name of replication/block factor

verbose

Logical. If TRUE (default), prints formatted output to console.

Author

Lalit Kumar Rolaniya, ICAR-IIPR, Bikaner

Examples

Run this code
# Example with sample data
data <- expand.grid(rep=1:3, A=c('A1','A2'), B=c('B1','B2'), C=c('C1','C2'))
data$yield <- rnorm(24, 1200, 150)
anova_sspd(data, response='yield', main_plot='A', sub_plot='B',
           sub_sub_plot='C', replication='rep')

Run the code above in your browser using DataLab