作者Sagara (相樂總三)
看板R_Language
標題[問題] glm.nb錯誤訊息
時間Fri Jul 6 10:53:03 2018
[軟體熟悉度]:
新手(沒寫過程式,R 是我的第一次)
[問題敘述]:
請簡略描述你所要做的事情,或是這個程式的目的
想請問我用Mass函數裡面的NB模式要去擬合一組1000多筆的數據資料
會出現一個錯誤訊息
Warning while fitting theta: iteration limit reached
2 x log-likelihood: -5098.231
Warning messages:
1: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace :
iteration limit reached
2: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace :
iteration limit reached
google一下好像是說R本身問題
不過看沒很懂
想請問該如何解決
謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 210.69.58.207
※ 文章網址: https://webptt.com/m.aspx?n=bbs/R_Language/M.1530845585.A.F04.html
1F:→ andrew43: glm.nb(..., glm.control(maxit = K)) #try K > 25 07/06 14:51