Hi 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?
Regards Petr > > 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. > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.