Message-ID: <loom.20131116T024955-582@post.gmane.org>
Date: 2013-11-16T02:06:13Z
From: Charles C. Berry
Subject: Bug in predict.lm?
Rolf Turner <r.turner <at> auckland.ac.nz> writes:
>
>
> I *do* see the same phenomenon that Bert describes and the code of
> predict.lm()
> *does* appear to contain a bug. There is a line:
>
[snip]
>
> The operative difference between my set-up and Chuck's is that I am using
> version 3.0.2 Patched. So I am very puzzled as to why Chuck does *not* get
> an error thrown!
>
[rest deleted]
The answer is that I made a rookie error.
I ran
example(predict.lm)
before trying Bert's ECM.
And then I did not bother to see what example(predict.lm) left lying
around in R_GlobalEnv ...
As you can probably guess, there was an object called 'w'.
So predict.lm finds it and is.null(w) is FALSE.
Mea culpa!