how to increase iteration limit in glmfit ?

1 回表示 (過去 30 日間)
Vincent Moron
Vincent Moron 2011 年 9 月 1 日
Dear All
I am using logistic regression on very small samples in cross-validation (N = 11 samples). I have results using glmfit but with a warning message that "iteration limit is reached". I would like to increase this limit. How to do do that when I ask "glmfit" ?
Thank you in advance
Vincent

採用された回答

Lucas García
Lucas García 2011 年 9 月 1 日
Iteration limit is set to 100 in glmfit. You cannot change it unless you edit the function and change it manually (type edit glmfit, line 280 approx.). If decide to do so, I recommend saving it as glmfit2 (remember to also change the name of the function).
  1 件のコメント
Jason Jury
Jason Jury 2011 年 11 月 13 日
I also have this issue (iteration limit, in my case due to large data set involving binary response). For Matlab2011b, there are multiple private functions being called by "glmfit" (e.g. "statremovenan", "stattestlink"). Any way to avoid having to duplicate all these private functions also, to get "glmfit2" to run? Thanks

サインインしてコメントする。

その他の回答 (0 件)

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by