作者star2000 (昨夜風)
站內Statistics
標題[程式] SAS跑非線性回歸的問題
時間Tue Mar 2 15:33:04 2010
想請問一下用nlin跑回歸,sas跑參數的時候,
sas會converge到SSE最小取最佳的值,
但是sas取值的方式似乎是只跑一百次估計的值就會停住,
以以下資料為歷
data colortv;
input sx accum;
cards;
747 0
1404 747
2694 2151
5012 4845
5563 9857
6215 15420
6191 21635
4821 27826
run;
proc nlin data=colortv;
parameters m=28264 p=0 q=0 r=0;
bounds m>=28264,p>=0, q>=0, r>=0;
model sx=(m-accum)*(p+q*(accum/m)**r);
run;
到最後出現的warning是
WARNING: Maximum number of iterations exceeded.
WARNING: PROC NLIN failed to converge.
不曉得有沒有其他方法可以讓nlin converge?
例如增加maximum number of iterations?
或者我參數得限制有設錯?
感謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 67.173.183.232
1F:推 tew:maxiter 查一下這個選項吧 03/02 17:41
2F:→ star2000:感謝!maxiter有最大37000的限制,試了一下還是無法conver 03/03 00:06
3F:→ star2000:converge. 看來我應該得更改starting points 03/03 00:09