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
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
2 matches
Mail list logo