fit data to y~A+B*sin(C*x)
Note that, given C, A and B can be obtained by simple linear regression of y on sin(Cx). Hence you could avoid nls altogether by a simple search of the minimal ls solution(possibly robust) over a grid of C values. Or do this to find good starting values for nls. Bert Sent from my iPhone -- please excuse typos.
On Feb 14, 2012, at 7:24 AM, Berend Hasselman <bhh at xs4all.nl> wrote:
nlmod