Skip to content
Prev 1829 / 20628 Next

(no subject)

Hi Lawrence,

 	contrasts(lambweight$age) returns the contrast matrix that is tested
by lm, lme, etc....you can assign to this matrix. You probably want
contrasts(lambweight$age) <- matrix(c(
1,0,0,
0,1,0),nrow=2)

...to do it in lme proper, add
contrasts=list(age=matrix(c(1,0,0,0,1,0),nrow=2))
to your command line.

Note also that you're not getting estimates for age2 and 3, you're getting
estimates for the difference between age2 and age1, and between age3 and
age1.

--Adam
On Tue, 27 Jan 2009, Lawrence Lee wrote: