PooledRBD {CANE} | R Documentation |
Pooled Randomized Block Design Analysis
Description
This function performs pooled analysis of variance (ANOVA) using the randomized block design (RBD) 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
PooledRBD(
data,
Response,
Location,
Treatment,
Replication,
alpha,
Mult_Comp_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. |
Replication |
A factor indicating replications of treatments. |
alpha |
A numeric value specifying the significance level for Bartlett’s test. |
Mult_Comp_Test |
An integer specifying the type of multiple comparison 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.
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
# Creating a sample dataset for Pooled Randomized Block Design (RBD)
df <- data.frame(
Loc = factor(rep(c("L1", "L2"), each = 9)), # Locations
Rep = factor(rep(c("R1", "R2", "R3"), each = 3, times = 2)), # Replications
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 PooledRBD function on the dataset
out <- PooledRBD(df, "Yield", "Loc", "Treatment", "Rep", 0.05, 1)
# Print results
print(out)