Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


CANE (version 0.1.1)

PooledCRD: Pooled Completely Randomized Design Analysis

Description

This function performs pooled analysis of variance (ANOVA) using the completely randomized design (CRD) for multiple locations or years. For more details see Montgomery (2017), Dean et al. (2017)<doi:10.1007/978-3-319-52250-0> and Ruíz et al. (2024)<doi:10.1007/978-3-031-65575-3>.

Usage

PooledCRD(data, Response, Location, Treatment, alpha, Mult_Comp_Test)

Value

A list containing the following components:

  • Individual_ANOVA: Summary of ANOVA results for each location or year.

  • Location_wise: Multiple comparisons of treatments within each location or year.

  • Bartlett_Test: Results of Bartlett's test for homogeneity of variances.

  • Pooled_ANOVA: Combined (pooled) ANOVA table across all locations or years.

  • Treatments_Comparison: Summary of pooled treatment comparisons using the selected multiple comparison test.

Arguments

data

A data frame containing the experimental data.

Response

A numeric variable representing the dependent variable (response).

Location

A factor indicating different locations or years.

Treatment

A factor indicating the different treatments applied.

alpha

A numeric value specifying the significance level for Bartlett’s test.

Mult_Comp_Test

An integer specifying the type of multiple comparison test:

  • 1 = Tukey's honestly significant difference (Tukey's HSD) test

  • 2 = Duncan's multiple range test (DMRT)

  • 3 = least significant difference (LSD) test

References

Dean A, Voss D, Draguljic D (2017)<doi:10.1007/978-3-319-52250-0>.

Montgomery DC (2017). Design and Analysis of Experiments. John wiley & sons.

Ruíz JS, López OAM, Crossa J (2024)<doi:10.1007/978-3-031-65575-3>.

Examples

Run this code
# Creating a sample dataset for Pooled Completely Randomized Design (CRD)
df <- data.frame(
  Loc = factor(rep(c("L1", "L2"), each = 9)),  # Locations
  Treatment = factor(rep(c("T1", "T2", "T3"), times = 6)),  # Treatments
  Yield = c(18, 7, 11, 10, 19, 12, 15, 8, 13, 
            18, 5, 11, 7, 19, 21, 22, 9, 14)  # Yield values
)

# Running PooledCRD function on the dataset
out <- PooledCRD(df, "Yield", "Loc", "Treatment", 0.05, 1)

# Print results
print(out)

Run the code above in your browser using DataLab