[R] what is the difference between using function predict() and coef() in prediction

tony333 tony333_6 at hotmail.com
Thu Dec 8 20:36:12 CET 2011


i do not know what is the difference between predict() and coef()
i use the two function give me different result 
zz = predict(xy.lm,list(T8=T8))
ss = coef(xy.lm)[1]+(coef(xy.lm)[2])*T8
where is t8 is the data used in prediction did not use in the fitting in
training sample where every sample is 15 value


--
View this message in context: http://r.789695.n4.nabble.com/what-is-the-difference-between-using-function-predict-and-coef-in-prediction-tp4173961p4173961.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list