[R] what is the difference between using function predict() and coef() in prediction
petr.pikal at precheza.cz
Fri Dec 9 14:12:20 CET 2011
Did you find any difference? The results shall be same (with only rounding
error). Can you show us some example where you get substantial difference?
> 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)+(coef(xy.lm))*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-
> Sent from the R help mailing list archive at Nabble.com.
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help