Re: [R] mgcv::gam error message for predict.gam

2008-06-12 Thread Simon Wood
Wild extrapolation thought it is... it works for me with mgcv 1.4-0 and R 2.7.0 on linux: > test 1 2 3 45 20.73032 16.83549 59.42120 29.07759 13.09754 what mgcv and R versions are you using, and on what OS? (btw `gam.method' isn't a

[R] mgcv::gam error message for predict.gam

2008-06-11 Thread David Katz
Sometimes, for specific models, I get this error from predict.gam in library mgcv: Error in complete.cases(object) : negative length vectors are not allowed Here's an example: model.calibrate <- gam(meansalesw ~ s(tscore,bs="cs",k=4), data=toplot, weights=weight, gam.method