Skip to content
Prev 155485 / 398503 Next

How does predict.lm work?

on 09/09/2008 09:59 AM Williams, Robin wrote:
Yes. Also, see the Note in ?predict.lm:

"Variables are first looked for in newdata and then searched for in the
usual way (which will include the environment of the formula used in the
fit). A warning will be given if the variables found are not of the same
length as those in newdata if it was supplied."


It also says "Variables", not columns.
No.
Yes.
HTH,

Marc Schwartz