Re: [R] gam() and contrast

2010-07-27 Thread Simon Wood
Which mgcv version are you using, and which package (and version number) are you using for the `contrast' function? (I assume you mean `gamm' below, btw) On Thursday 22 July 2010 20:13, Xia Li wrote: > Dear All, > I met problems when doing contrast and now really need some help in the > model bel

[R] gam() and contrast

2010-07-22 Thread Xia Li
Dear All, I met problems when doing contrast and now really need some help in the model below: Fit=gam(y~treat+SEQUENCE+PERIOD+SEX+s(x),data=dat, random=list(SUBJID=~1),correlation=corAR1(form=~1|SUBJID)) And error message keeps coming out when I want to compare the differences between treatments