[程式] SAS跑非線性回歸的問題

看板Statistics作者 (昨夜風)時間16年前 (2010/03/02 15:33), 編輯推噓1(102)
留言3則, 2人參與, 最新討論串1/1
想請問一下用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

03/02 17:41, , 1F
maxiter 查一下這個選項吧
03/02 17:41, 1F

03/03 00:06, , 2F
感謝!maxiter有最大37000的限制,試了一下還是無法conver
03/03 00:06, 2F

03/03 00:09, , 3F
converge. 看來我應該得更改starting points
03/03 00:09, 3F
文章代碼(AID): #1BZByp_W (Statistics)