Chapter 7 ANOVA for Balanced Two-Factor Experiments

  • a sequence of progressively more complex models:

    • \(E(y_{ijk}) = \mu\)
    • \(E(y_{ijk}) = \mu + \alpha_i\)
    • \(E(y_{ijk}) = \mu + \alpha_i + \beta_j\)
    • \(E(y_{ijk}) = \mu + \alpha_i + \beta_j + \gamma_{ij}\)
  • R code:

o = lm(y ~ diet + drug + diet:drug, data = data1)
anova(o)