Skip to content
Back to formatted view

Raw Message

Message-ID: <B9EEF629-CF0D-4BC3-BEB6-6960C3954745@gene.com>
Date: 2012-02-14T15:55:41Z
From: Bert Gunter
Subject: fit data to y~A+B*sin(C*x)
In-Reply-To: <5315BF44-AA4C-4201-B0B1-B981C0C752A8@xs4all.nl>

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