Re: [R] Polynomial equation

2010-01-07 Thread Moshe Olshansky
efore doing all this. Regards, Moshe. --- On Fri, 8/1/10, chrisli1223 wrote: > From: chrisli1223 > Subject: Re: [R] Polynomial equation > To: r-help@r-project.org > Received: Friday, 8 January, 2010, 2:14 PM > > Thank you very much for your help. Greatly appreciated!

Re: [R] Polynomial equation

2010-01-07 Thread chrisli1223
m(y~poly(x,4,raw=TRUE) and then > summary(model) > The raw=TRUE causes poly to use 1,x,x^2,x^3,... instead of orthogonal > polynomials (which are "better" numerically but may be not what you need). > > Regards, > Moshe. > > --- On Fri, 8/1/10, chrisli1223 wrot

Re: [R] Polynomial equation

2010-01-07 Thread Moshe Olshansky
ich are "better" numerically but may be not what you need). Regards, Moshe. --- On Fri, 8/1/10, chrisli1223 wrote: > From: chrisli1223 > Subject: [R] Polynomial equation > To: r-help@r-project.org > Received: Friday, 8 January, 2010, 12:32 PM > > Hi all, > >

[R] Polynomial equation

2010-01-07 Thread chrisli1223
Hi all, I have got a dataset. In Excel, I can fit a polynomial trend line beautifully. However, the equation that Excel calculates appear to be incorrect. So I am thinking about using R. My questions are: (1) How do I fit a polynomial trendline to a graph? (2) How do I calculate and display the