[R] nls error regarding numerics vs logicals

2010-07-09 Thread Jim Bouldin
I am trying to perform an nls for a valid negative exponential function: zz=nls(y~constant+a.est*2.7183^(b.est*x),start=list(constant=4.0,a.est=-4,b.est = -.005),trace=T) and am getting a number of different error messages, the most problematic of which is Error in nls(ring.area ~ constant +

Re: [R] nls error regarding numerics vs logicals

2010-07-09 Thread Duncan Murdoch
On 09/07/2010 1:51 PM, Jim Bouldin wrote: I am trying to perform an nls for a valid negative exponential function: zz=nls(y~constant+a.est*2.7183^(b.est*x),start=list(constant=4.0,a.est=-4,b.est = -.005),trace=T) and am getting a number of different error messages, the most problematic of

Re: [R] nls error regarding numerics vs logicals

2010-07-09 Thread Jim Bouldin
1. The expression you gave us is clearly not the one that produced the error: it involved ring.area and ba.beg. 2. You don't tell us what x and y are, so we can't reproduce anything. Sorry, I guess that was unclear. I changed the response and independent variable names to y and x

Re: [R] nls error regarding numerics vs logicals

2010-07-09 Thread Duncan Murdoch
On 09/07/2010 2:36 PM, Jim Bouldin wrote: 1. The expression you gave us is clearly not the one that produced the error: it involved ring.area and ba.beg. 2. You don't tell us what x and y are, so we can't reproduce anything. Sorry, I guess that was unclear. I changed the response and

Re: [R] nls error regarding numerics vs logicals

2010-07-09 Thread Peter Ehlers
On 2010-07-09 13:29, Duncan Murdoch wrote: On 09/07/2010 2:36 PM, Jim Bouldin wrote: 1. The expression you gave us is clearly not the one that produced the error: it involved ring.area and ba.beg. 2. You don't tell us what x and y are, so we can't reproduce anything. Sorry, I guess that