Re: [R] Coefficient names when using lm() with contrasts

2011-08-04 Thread Peter Morgan
Many thanks, Greg. It works like a dream. Best wishes, Pete From: Greg Snow To: Peter Morgan , "r-help@r-project.org" Date: 03/08/2011 19:06 Subject:Re: [R] Coefficient names when using lm() with contrasts Sent by:r-help-boun...@r-project.org If you

[R] Coefficient names when using lm() with contrasts

2011-08-03 Thread Peter Morgan
Dear R Users, Am using lm() with contrasts as below. If I skip the contrasts() statement, I get the coefficient names to be > names(results$coef) [1] "(Intercept)" "VarAcat" "VarArat" "VarB" which are much more meaningful than ones based on integers. Can anyone tell me how to get R to