Chapter 7 ANOVA for Balanced Two-Factor Experiments

  • a sequence of progressively more complex models:

    • E(yijk)=μ
    • E(yijk)=μ+αi
    • E(yijk)=μ+αi+βj
    • E(yijk)=μ+αi+βj+γij
  • R code:

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