Skip to content
Prev 309559 / 398506 Next

fitting weibull curve to data using nls

On Thu, Nov 1, 2012 at 2:44 AM, <John.Morrongiello at csiro.au> wrote:
Don't do this. It doesn't actually hurt here, but the
data.frame(cbind(...)) idiom generally will screw things up. Rather
just data.frame(temp, response).
Yes, something's wrong with the function specification.

You want

exp(-(temp/a)^b)

[Note the removed ^]

exp() is a function which does exponentiation, you don't want to try
to exponentiate it.
Nonlinear regression model
  model:  response ~ c * ((temp/a)^(b - 1)) * exp(-(temp/a)^b)
   data:  dd
     a      b      c
43.128  3.365  2.504
 residual sum-of-squares: 0.1678

Number of iterations to convergence: 9
Achieved convergence tolerance: 6.384e-06

Cheers,
Michael Weylandt