Re: [R] Upper limit in nlsLM not working as expected

2012-10-19 Thread Martin Hehn
Dear John, this appears to be one of the cases where your algorithm is favourable over the nlsLM one. The fitting is now a lot better with ssquared being lower compared to any other fit method I was comparing to. As I am relatively new to R, it still puzzles me that there are so many package

Re: [R] Upper limit in nlsLM not working as expected

2012-10-19 Thread Martin Hehn
to noise. Any ideas on how to avoid fitting to the noise? Regards From: Berend Hasselman [b...@xs4all.nl] Sent: 18 October 2012 17:45 To: Martin Hehn Cc: r-help@R-project.org Subject: Re: [R] Upper limit in nlsLM not working as expected On 18-10-2012, a

[R] Upper limit in nlsLM not working as expected

2012-10-18 Thread Martin Hehn
Dear all, I am using the nlsLM function to fit a Lorentzian function to my experimental data. The LM algorithm should allow to specify limits, but the upper limit appears not to work as expected in my code. The parameter 'w', which is peak width at half maximuim always hits the upper limit if t