Re: [R] Find the prediction or the fitted values for an lm model

2013-11-28 Thread Achim Zeileis
On Thu, 28 Nov 2013, jpm miao wrote: Hi, I would like to fit my data with a 4th order polynomial. Now I have only 5 data point, I should have a polynomial that exactly pass the five point Then I would like to compute the fitted or predict value with a relatively large x dataset. How can I

Re: [R] Find the prediction or the fitted values for an lm model

2013-11-28 Thread Rolf Turner
See in-line below. On 11/28/13 20:50, jpm miao wrote: Hi, I would like to fit my data with a 4th order polynomial. Now I have only 5 data point, I should have a polynomial that exactly pass the five point Then I would like to compute the fitted or predict value with a relatively

[R] Find the prediction or the fitted values for an lm model

2013-11-27 Thread jpm miao
Hi, I would like to fit my data with a 4th order polynomial. Now I have only 5 data point, I should have a polynomial that exactly pass the five point Then I would like to compute the fitted or predict value with a relatively large x dataset. How can I do it? BTW, I thought the model