[R] predict problem - solved

Troels Ring tring at gvdnet.dk
Mon Apr 9 18:00:01 CEST 2001

Faster than the wind several people spotted the errors

>while this refuses to take the "new" and predict ?
>lot <- c(30,20,60,80,40,50,60,30,70,60)
>hours <- c(73,50,128,170,87,108,135,69,148,132)
>z1 <- lm(hours~lot)
>new <- data.frame(x=80)

new <- data.frame(lot=80)


Thank you for your efforts and kindness !

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://stat.ethz.ch/pipermail/r-help/attachments/20010409/73b61a36/attachment.html

More information about the R-help mailing list