Re: [R] How to do a trig regression

2010-09-24 Thread Aaditya Nanduri
-Original Message- > > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > > project.org] On Behalf Of Aaditya Nanduri > > Sent: Sunday, September 12, 2010 8:23 PM > > To: r-help@r-project.org > > Subject: [R] How to do a trig regression > > >

Re: [R] How to do a trig regression

2010-09-13 Thread Greg Snow
801.408.8111 > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of Aaditya Nanduri > Sent: Sunday, September 12, 2010 8:23 PM > To: r-help@r-project.org > Subject: [R] How to do a trig regression > > Hello All

Re: [R] How to do a trig regression

2010-09-12 Thread David Winsemius
On Sep 12, 2010, at 10:23 PM, Aaditya Nanduri wrote: Hello All, I cant seem to do a trig regression in R. The equation is as follows : y = a+b*(sin((2*pi*x/360) - c))^2 a, b, c are coefs that I want. y, x are input vectors. The equation I put into R: lm(y ~ sin(2*pi*x/360)^2) This equation

[R] How to do a trig regression

2010-09-12 Thread Aaditya Nanduri
Hello All, I cant seem to do a trig regression in R. The equation is as follows : y = a+b*(sin((2*pi*x/360) - c))^2 a, b, c are coefs that I want. y, x are input vectors. The equation I put into R: lm(y ~ sin(2*pi*x/360)^2) This equation is missing the c and I dont get the right answer. Also,