Skip to content

simple anova question

1 message · AllenL

#
Dear R group,
Simple anova question:
I am attempting to recreate a figure (from chapter 10 of "Mordern Statistics
for the Life Sciences", chapter 10, figure 10.8).

It is an interaction diagram plotting BYIELD (continuous) as a function of
BSPACING (categorical) with different lines/colours for another categorical
variable BVARIETY. The data is replicated into four categorical BBLOCK(s).
The corresponding analysis looks like this:
BYIELD~BBLOCK+BSPACING+BVARIETY

What I want to extract from this model is simply the expected value all
possible combination of factors. I can do this by adding the correct
combinations of model coefficients, but this seems silly. Surely there is a
one-line function for sorting this sort of thing out?

Many thanks,
Allen