Skip to content
Prev 333224 / 398506 Next

Bug in predict.lm?

Rolf Turner <r.turner <at> auckland.ac.nz> writes:
[snip]
[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!