Skip to content
Prev 59484 / 398502 Next

solving system of nonlinear equations

R version: 2.0.0
OS: WinXP, SP2

I am using "nls" to estimate parameters of a system of nonlinear
equations. Although, iteration is not converging, I would like to get
the final estimates and store them in the object, say, "RR".

Any help would be appreciated. Thanks. 

The following is not working ( I mean, I can not store it in "RR")

RR=nls(k~exp(-(q1-lam)/sig)+exp(-(q2-del)/tau),start=st,data=d1,trace=T,control=ctrl)
13.24433 :  30 30 15 10 
3.90071 :  33.00603 38.86974 20.18227 10.15656 
0.02326074 :  31.44802 36.80447 20.01395 10.07528 
1.209036e-06 :  31.39755 36.58548 19.99954 10.05675 
1.543785e-15 :  31.39752 36.58347 19.99947 10.05640 
1.030527e-29 :  31.39752 36.58347 19.99947 10.05640 
8.019572e-31 :  31.39752 36.58347 19.99947 10.05640 
8.019572e-31 :  31.39752 36.58347 19.99947 10.05640 
8.019572e-31 :  31.39752 36.58347 19.99947 10.05640 
8.019572e-31 :  31.39752 36.58347 19.99947 10.05640 
8.019572e-31 :  31.39752 36.58347 19.99947 10.05640 
Error in nls(k ~ exp(-(q1 - lam)/sig) + exp(-(q2 - del)/tau), start = st,  : 
        number of iterations exceeded maximum of 10



On Sun, 14 Nov 2004 17:09:06 -0800, Spencer Graves
<spencer.graves at pdf.com> wrote: