[R] Non-linear fit?

Ulises M. Alvarez uma at sophie.unam.mx
Wed Nov 25 16:52:04 CET 2015

On 11/24/2015 09:32 PM, Judson wrote:
> I need to fit a sinusoidal curve to
> x-y data that exhibits a sinusoidal
> pattern.   The curve will be:
>   y = a*sin(w*x +p) ;
> where I need to get the best
> fit choice for the parameters
> a, w, and p.   Could anyone
> suggest which package and
> routine I should use?   I have
> less than 1000 data points.
> Can this problem be somehow
> coerced into a linear fit?
> ....... judson blake 		 	   		

You may take a look at the nlme library.
Ulises M. Alvarez

More information about the R-help mailing list