-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
> >
>
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
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
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,
4 matches
Mail list logo