Skip to content
Prev 299895 / 398503 Next

nls problem: singular gradient

On 07/12/2012 01:39 AM, Duncan Murdoch wrote:
I am not shure what you mean with "rescale paramaeters", but i changed 
ttt and tau2 to 1 but nls still fails. Do you mean i can only use 
functions with tau2 and ttt close to 1?

Is there a better fit function then nls for R? Even "origin" can find 
the parameters without any problems.

nlsfit <- nls(data=dd,  y ~  1/2 * ( 1- mytanh((x - ttt)/0.0001) * 
exp(-x / tau2) ), start=list(ttt=1, tau2=1) , trace=TRUE, control = 
list(maxiter = 100))