Displaying 1 result from an estimated 1 matches for "predixt".
Did you mean:
predict
2004 Jul 16
3
small problem with predict
hello to all!
I have a small problem wit predict() for lm
Let's say I have predictors x1 and x2, response y
I want to predict for a new ds say
dn<-data.frame(x1= seq(min(x1),max(x1),length=10),x2=rep(median(x2),10))
predict(lm(y~x1+x2),dn,se.fit=T)
Error message
> Error: variables 'x1', 'x2' were specified differently from the fit
(I looked in the help and found