Re: [R] nls, convergence and starting values

2009-03-30 Thread Christian Ritz
Hi Patrick, there exist specialized functionality in R that offer both automated calculation of starting values and relatively robust optimization, which can be used with success in many common cases of nonlinear regression, also for your data: library(drc) # on CRAN ## Fitting 3-parameter lo

Re: [R] nls, convergence and starting values

2009-03-28 Thread Ben Bolker
Patrick Giraudoux univ-fcomte.fr> writes: > > Patrick Burns a écrit : > > Patrick Giraudoux wrote: > >> Bert Gunter a écrit : > >>> Based on a simple scatterplot of pourcma vs transat, a 4 parameter > >>> logistic > >>> looks like wild overfitting, and that may be the source of your > >>> pro

Re: [R] nls, convergence and starting values

2009-03-28 Thread Patrick Giraudoux
Patrick Burns a écrit : Patrick Giraudoux wrote: Bert Gunter a écrit : Based on a simple scatterplot of pourcma vs transat, a 4 parameter logistic looks like wild overfitting, and that may be the source of your problems. Given the huge scatter, a straight line is about as much as would seem

Re: [R] nls, convergence and starting values

2009-03-28 Thread Patrick Burns
Patrick Giraudoux wrote: Bert Gunter a écrit : Based on a simple scatterplot of pourcma vs transat, a 4 parameter logistic looks like wild overfitting, and that may be the source of your problems. Given the huge scatter, a straight line is about as much as would seem sensible. I think this fa

Re: [R] nls, convergence and starting values

2009-03-27 Thread Patrick Giraudoux
Bert Gunter a écrit : Based on a simple scatterplot of pourcma vs transat, a 4 parameter logistic looks like wild overfitting, and that may be the source of your problems. Given the huge scatter, a straight line is about as much as would seem sensible. I think this falls into the "Why ever would

Re: [R] nls, convergence and starting values

2009-03-27 Thread Bert Gunter
c: Francis Raoul Subject: [R] nls, convergence and starting values "in non linear modelling finding appropriate starting values is something like an art"... (maybe from somewhere in Crawley , 2007) Here a colleague and I just want to compare different response models to a null model. Th

[R] nls, convergence and starting values

2009-03-27 Thread Patrick Giraudoux
"in non linear modelling finding appropriate starting values is something like an art"... (maybe from somewhere in Crawley , 2007) Here a colleague and I just want to compare different response models to a null model. This has worked OK for almost all the other data sets except that one (dumped b