[R] nls

From: Xiaodong Jin <close2ceo_at_yahoo.com>
Date: Tue 15 Aug 2006 - 22:54:51 EST


  Is there anyway to change any y[i] value (i=2,...6) to make following NLS workable?    

  x <- c(0,5,10,15,20,25,30)
  y <- c(1.00000,0.82000,0.68000,0.64000,0.66667,0.68667,0.64000)   lm(1/y ~~ x)
  nls(1/y ~~ a+b*x^c, start=list(a=1.16122,b=0.01565,c=1), trace=TRUE)    

  #0.0920573 : 1.16122 0.01565 1.00000
#Error in numericDeriv(form[[3]], names(ind), env) :
# Missing value or an infinity produced when evaluating the model
                         


        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Tue Aug 15 22:58:33 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 16 Aug 2006 - 00:21:55 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.