Skip to content
Prev 333214 / 398506 Next

Bug in predict.lm?

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:
But "w" gets assigned (as object$weights) only if (is.null(scale)).

If that assignment is moved outside of the applicable "if field" (e.g. 
and is put
just after the line:
then predict.lm() throws no error.
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!

BTW traceback() was not helpful:
cheers,

     Rolf
On 11/16/13 10:55, Charles Berry wrote: