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 pred<-predict.gam(b,newd) I tried > pred<-predict.gam(b). > > >Do you have the latest version of mgcv (and of R, for that matter)? > > I'm running R 1.7.0 under Windows 2000 with mgcv 0.8-8. (Yes, that is current AFAIK.)
The example works. If you alter it as you state, there is a warning (only), and that is a bug in mgcv. object$dim == 0 makes no sense as it is > b$dim [1] 1 1 1 1 Either all() or any() is needed, but Simon will have to tell you which. -- Brian D. Ripley, [EMAIL PROTECTED] Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595 ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
