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
http://sophie.unam.mx/

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to