Re: [R] Multi-dimensional non-linear fitting - advice on best method?

From: Julian Gilbey <>
Date: Tue, 26 Apr 2011 22:30:27 +0100

On Sun, Apr 24, 2011 at 07:02:48PM -0400, Ravi Varadhan wrote:
> Julian,
> You have not specified your problem fully. What is the nature of f? Is f a scalar function or is it a vector function (2-dim)?

It's something like this (only a bit worse):

given x, work out alpha from
  cos(alpha) = sin(delta) * sin(x) * sin(theta) - cos(delta) * cos(theta)

then y1 = h * cos(alpha) + offset1 + err1

     y2 = h * sin(alpha) + offset2 + err2

where theta is known, and delta, offset1, offset2 and h are to be estimated and err1, err2 are measurement errors.

x is known, (y1, y2) are observed.

   Julian mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Tue 26 Apr 2011 - 21:32:41 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 26 Apr 2011 - 21:40:33 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive