Skip to content
Prev 248738 / 398506 Next

User error in calling predict/model.frame

Hi Russell,
There may be some subtleties that I'm not picking up on, but the
obvious problem is that the names of the predictors in newdata do not
match the names of the predictors in dat.

names(newdata) <- names(dat)[1:2]
   newdata$Y <- predict(lm.obj,newdata)

does work on my machine.

Best,
Ista
On Fri, Jan 28, 2011 at 4:37 PM, Russell Pierce <rpier001 at ucr.edu> wrote: