Learn R Programming

aridagri (version 2.0.3)

anova_sspd_pooled: Pooled Split-Split Plot Design ANOVA

Description

Performs pooled ANOVA for SSPD experiments across multiple environments.

Usage

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

Value

List containing pooled ANOVA results

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

sub_sub_plot

Name of sub-sub-plot factor

environment

Name of environment factor

replication

Name of replication factor

verbose

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

Author

Lalit Kumar Rolaniya, Ram Lal Jat, Monika Punia, Raja Ram Choudhary

Examples

Run this code
data <- expand.grid(env = c("E1","E2"), rep = 1:3, A = c("A1","A2"), 
                    B = c("B1","B2"), C = c("C1","C2"))
data$yield <- rnorm(nrow(data), 1200, 150)
anova_sspd_pooled(data, "yield", "A", "B", "C", "env", "rep")

Run the code above in your browser using DataLab