Skip to content
Prev 326098 / 398503 Next

Comparing each level of a factor to the global mean

Hi Jean,

contr.treatment(4) shows what the default contrast matrix looks like
for a factor with 4 levels. What function do I use to create a
contrast matrix to compare each level with the global mean (four
comparisons in total), and produce a table similar to `summary.lm`?

Thanks,
Shaun
On 26 June 2013 05:50, Adams, Jean <jvadams at usgs.gov> wrote: