Learn R Programming

aridagri (version 2.0.3)

anova_spd_pooled: Pooled Split Plot Design Analysis

Description

Performs pooled analysis of Split Plot Design experiments conducted across multiple environments/years/locations.

Usage

anova_spd_pooled(
  data,
  response,
  main_plot,
  sub_plot,
  environment,
  replication,
  verbose = TRUE
)

Value

List containing pooled ANOVA and component analyses

Arguments

data

Data frame containing combined data

response

Name of the response variable

main_plot

Name of main plot factor

sub_plot

Name of sub-plot factor

environment

Name of environment factor

replication

Name of replication factor (nested within environment)

verbose

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

Author

Lalit Kumar Rolaniya, ICAR-IIPR, Bikaner

Examples

Run this code
data <- expand.grid(
  year = c("Y1", "Y2", "Y3"),
  rep = 1:3,
  irrigation = c("I1", "I2", "I3"),
  variety = c("V1", "V2", "V3", "V4")
)
data$yield <- rnorm(nrow(data), 1200, 180)

anova_spd_pooled(data, response = "yield", main_plot = "irrigation",
                 sub_plot = "variety", environment = "year", replication = "rep")

Run the code above in your browser using DataLab