[R] fit data to y~A+B*sin(C*x)
Bert Gunter
gunter.berton at gene.com
Tue Feb 14 16:55:41 CET 2012
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
More information about the R-help
mailing list