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 <b...@xs4all.nl> wrote: > nlmod ______________________________________________ R-help@r-project.org mailing list 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.