Skip to content
Prev 7385 / 63421 Next

nls (PR#1533)

Your results are not reproducible
1.474151 :  1.10 2.10 0.11 
0.01060234 :  1.0092752 1.9893808 0.1012907 
5.066695e-07 :  0.9999465 2.0000191 0.0999903 
1.421765e-14 :  1.0 2.0 0.1 
1.056486e-14 :  1.0 2.0 0.1 
Nonlinear regression model
  model:  y ~ a * x^m/(1 + b * x^m) 
   data:  parent.frame 
  a   m   b 
1.0 2.0 0.1 
 residual sum-of-squares:  1.056486e-14 

You are encountering a well-known anomaly which occurs only in
artificial examples with a zero residual sum of squares.  The
statistical model to be fit with nls is y = f(x, theta) + eps
but your data are y = f(x, theta)

If there is any noise in the data, such as created from my copying and
pasting above, nls performs correctly.


scs10@st-and.ac.uk writes: