Re: [R] gam questions

2003-06-03 Thread Simon Wood
> It's the gam.predict example. Instead of pred<-predict.gam(b,newd) I tried > pred<-predict.gam(b). - Ok, thanks - this is a bug I missed, I'll fix it. The results should be unaffected, though. Simon __ [EMAIL PROTECTED] mailing list https://www.stat.m

Re: [R] gam questions

2003-06-03 Thread Prof Brian Ripley
On Tue, 3 Jun 2003, Henric Nilsson wrote: > At 10:07 2003-06-03 +0100, Prof Brian Ripley wrote: > > > > 1. The prediction example on p. 38 in the mgcv manual. > >That's not very helpful: pagination of manuals depends on the paper size, > >for example. > > It's the gam.predict example. Instead of

Re: [R] gam questions

2003-06-03 Thread Henric Nilsson
At 10:07 2003-06-03 +0100, Prof Brian Ripley wrote: > 1. The prediction example on p. 38 in the mgcv manual. That's not very helpful: pagination of manuals depends on the paper size, for example. It's the gam.predict example. Instead of pred<-predict.gam(b,newd) I tried pred<-predict.gam(b). Do

Re: [R] gam questions

2003-06-03 Thread Simon Wood
> 2. I've fitted a glm y~a+x+a:x, where a is a 3 level factor and x is a > continuous covariate. If I want to fit a similar gam model, is it correct > to fit y~a+s(x)+s(x,by=a.1)+s(x,by=a.2)+s(x,by=a.3), where a.1--a.3 are > dummy variables representing each level of the factor? Or is the s(x) t

Re: [R] gam questions

2003-06-03 Thread Prof Brian Ripley
On Tue, 3 Jun 2003, Henric Nilsson wrote: > I'm a fairly new R user having two questions regarding gam: > > 1. The prediction example on p. 38 in the mgcv manual. That's not very helpful: pagination of manuals depends on the paper size, for example. > In order to get > predictions based on t

[R] gam questions

2003-06-03 Thread Henric Nilsson
Dear all, I'm a fairly new R user having two questions regarding gam: 1. The prediction example on p. 38 in the mgcv manual. In order to get predictions based on the original data set, by leaving out the 'newdata' argument ("newd" in the example), I get an error message "Warning message: the c