[R] contrasts for lm

Ann Hess hess at stat.colostate.edu
Thu Dec 8 00:52:35 CET 2005

I would like estimate a number of contrasts from a one-way ANOVA model.  I see 
that the lm command has a contrasts option, but I can't figure out how to use 
it!  Any help that can be offered would be greatly apreciated.

Here is my model statement:


where P has 16 levels, T(treatment) has 12 levels and I am interested in 
looking at different treatment comparisons.



More information about the R-help mailing list