Learn R Programming

aridagri (version 2.0.3)

anova_alpha_lattice: Alpha Lattice Design ANOVA

Description

Performs ANOVA for Alpha Lattice (Resolvable Incomplete Block) Design.

Usage

anova_alpha_lattice(
  data,
  response,
  genotype,
  replication,
  block,
  verbose = TRUE
)

Value

List containing ANOVA results

Arguments

data

Data frame containing the data

response

Name of response variable

genotype

Name of genotype column

replication

Name of replication column

block

Name of incomplete block column (nested within replication)

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(rep = 1:2, block = 1:5, entry = 1:4)
data$genotype <- paste0("G", 1:nrow(data))
data$yield <- rnorm(nrow(data), 1200, 150)

Run the code above in your browser using DataLab