Learn R Programming

eda4treeR (version 1.1.0)

Exam2.2: Example 2.2 from Experimental Design and Analysis for Tree Improvement

Description

Exam2.2 is used to compare two seed lots by using ANOVA under RCB Design.

Arguments

Author

  1. Muhammad Yaseen (myaseen208@gmail.com)

  2. Sami Ullah (samiullahuos@gmail.com)

References

  1. E.R. Williams, C.E. Harwood and A.C. Matheson (2023). Experimental Design and Analysis for Tree Improvement. CSIRO Publishing (https://www.publish.csiro.au/book/3145/).

See Also

DataExam2.2

Examples

Run this code
library(car)
library(dae)
library(dplyr)
library(emmeans)
library(ggplot2)
library(lmerTest)
library(magrittr)
library(predictmeans)

data(DataExam2.2)

# Pg. 24
fmtab2.5 <-
          lm(
             formula  = dbh ~ block + seedlot
           , data     = DataExam2.2
           )

# Pg. 26
anova(fmtab2.5)

# Pg. 26
emmeans(object = fmtab2.5, specs = ~ seedlot)
emmip(object = fmtab2.5, formula = ~ seedlot) +
  theme_classic()

Run the code above in your browser using DataLab