Re: [R] Error in NLS example in the documentation

2011-06-12 Thread peter dalgaard
On Jun 12, 2011, at 20:25 , Diviya Smith wrote: > Hello there, > > I am trying to use R function NLS to analyze my data and one of the examples > in the documentation is - > > ## the nls() internal cheap guess for starting values can be sufficient: > > x <- -(1:100)/10 > y <- 100 + 10 * exp(x

[R] Error in NLS example in the documentation

2011-06-12 Thread Diviya Smith
Hello there, I am trying to use R function NLS to analyze my data and one of the examples in the documentation is - ## the nls() internal cheap guess for starting values can be sufficient: x <- -(1:100)/10 y <- 100 + 10 * exp(x / 2) + rnorm(x)/10 nlmod <- nls(y ~ Const + A * exp(B * x), trace=T