|
求助给位大侠,我用nls做非线性拟合,但总是出现错误,调整程序后陆续出现“step factor 0.000488281 reduced below 'minFactor' of 0.000976562”, “Convergence failure: iteration limit reached without convergence (10)”,“ Convergence failure: singular convergence (7)”,请问我该如何调整程序获得拟合值?谢谢咯···
数据:
x y
1 0
2 0.000651812
3 0.001285391
4 0.001907001
5 0.002512151
7 0.003660411
11 0.005894205
18 0.009491227
25 0.012703151
34 0.016566937
51 0.02358676
67 0.030009042
82 0.03581143
105 0.044607346
140 0.058726979
174 0.072786093
250 0.100065555
300 0.111496
330 0.115662783
360 0.11938525
拟合的方程为:model<- nls(y~1-a*exp(-k1*x)-b*exp(-k2*x)-(1-a-b)*exp(-k3*x),start=list(a=0.01,b=0.2,k1=0.02,k2=0.0002,k3=0.000002),control=list(minFactor=0.000001),algorithm = "port")
|
|