gam questions
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 the original data set, by leaving out the 'newdata'
argument ("newd" in the example), I get an error message
"Warning message: the condition has length > 1 and only the first element
will be used in: if (object$dim == 0) m <- 0 else m <- length(object$sp)"
I suspected that it had somthing to do with the data not being attached,
but when fitting a gam with an attached data set I got the same error. Why?
That is a warning not an error! It was a bug in mgcv a while back. Do you have the latest version of mgcv (and of R, for that matter)? I am not seeing this any more.
Brian D. Ripley, ripley at stats.ox.ac.uk 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