Re: [R] Logistic regression

From: Dieter Menne <>
Date: Mon, 14 Apr 2008 20:01:02 +0000 (UTC)

Guillaume Brutel <guillaume.brutel <at>> writes:

> I am trying to fit a non linear regression model to time series data.
> If I do this:
> reg.logis = nls(myVar~SSlogis(myTime,Asym,xmid,scal))
> I get this error message (translated to English from French):
> Erreur in nls(y ~ 1/(1 + exp((xmid - x)/scal)), data = xy, start =
> list(xmid = aux[1], :
> le pas 0.000488281 became inferior to 'minFactor' of 0.000976562

If it occurs after a few iterations (was it verbose=TRUE; sorry, no docs at hand), almost always means that there is no unique solution. Are you sure that your data level out at 1? Or is a normalization factor needed? Try to repost with the original data set if possible. This error message might also turn up when the start values were totally off, so try to plot the curve and the data with the start values.

Setting minFactor never helped for me in that case.

Dieter mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Mon 14 Apr 2008 - 20:03:34 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 Mon 14 Apr 2008 - 20:31:37 GMT.

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

list of date sections of archive