Skip to content
Prev 248790 / 398503 Next

User error in calling predict/model.frame

On Jan 29, 2011, at 12:12 PM, Russell Pierce wrote:

            
Puzzled that you would see a particular need for the rms functions  
(not that I have anything against the rmes package, but it doesn't  
seem to be needed here.)

This seems to work without error:

rms.res <- glm(out ~ scale(xxA)*scale(xxB), data=dat)
newdata <- predict(rms.res,  
newdata=data.frame(xxA=c(-1,0,1),xxB=c(-1,0,1)))