<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/173056</link>
    <title>MATLAB Central Newsreader - glmfit iteration limit</title>
    <description>Feed for thread: glmfit iteration limit</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Tue, 22 Jul 2008 19:35:04 -0400</pubDate>
      <title>glmfit iteration limit</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/173056#444714</link>
      <author>Ketan </author>
      <description>Hello&lt;br&gt;
&lt;br&gt;
I am getting a warning &quot;iteration limit reached&quot; while &lt;br&gt;
using GLMFIT function.&lt;br&gt;
&lt;br&gt;
How can I increase this iteration limit? I looked into the &lt;br&gt;
code and figured it has hard coded iteration limit set to &lt;br&gt;
100 iterations. Can I modify the code and increase this &lt;br&gt;
iteration limit? Is there a reason (with statistical &lt;br&gt;
significance) for restricting iteration limit to 100?&lt;br&gt;
&lt;br&gt;
Regards,&lt;br&gt;
Ketan</description>
    </item>
    <item>
      <pubDate>Wed, 23 Jul 2008 13:07:45 -0400</pubDate>
      <title>Re: glmfit iteration limit</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/173056#444855</link>
      <author>Tom Lane</author>
      <description>&amp;gt; I am getting a warning &quot;iteration limit reached&quot; while&lt;br&gt;
&amp;gt; using GLMFIT function.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; How can I increase this iteration limit? I looked into the&lt;br&gt;
&amp;gt; code and figured it has hard coded iteration limit set to&lt;br&gt;
&amp;gt; 100 iterations. Can I modify the code and increase this&lt;br&gt;
&amp;gt; iteration limit? Is there a reason (with statistical&lt;br&gt;
&amp;gt; significance) for restricting iteration limit to 100?&lt;br&gt;
&lt;br&gt;
Ketan, there's no statistical reason for restricting the limit to 100.  Feel &lt;br&gt;
free to change it in your file.  I'll record an enhancement request that &lt;br&gt;
this be made adjustable in a future release.&lt;br&gt;
&lt;br&gt;
One cause for excessive iterations can be complete separation in regression &lt;br&gt;
with a binomial response.  If the response is true/false, and if there's a &lt;br&gt;
point p such that x&amp;lt;p is all true and x&amp;gt;p is all false, then the maximum &lt;br&gt;
likelihood is infinite.  (The same could be true if a linear combination of &lt;br&gt;
multiple x values has such a point.)  You could check for that condition.&lt;br&gt;
&lt;br&gt;
-- Tom </description>
    </item>
    <item>
      <pubDate>Wed, 23 Jul 2008 13:42:25 -0400</pubDate>
      <title>Re: glmfit iteration limit</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/173056#444870</link>
      <author>Peter Perkins</author>
      <description>Tom Lane wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt; One cause for excessive iterations can be complete separation in regression &lt;br&gt;
&amp;gt; with a binomial response.&lt;br&gt;
&lt;br&gt;
Just to follow up on what Tom said, 100 iterations is a _lot_ for the IRLS &lt;br&gt;
algorithm that GLMFIT uses.  I'm not saying that there aren't cases where you &lt;br&gt;
usefully need more than that, but I suggest first looking that the fit that &lt;br&gt;
you're getting after 100 iterations and seeing if there's anything you should be &lt;br&gt;
paying more atention to in your data.  Tom cites the most common example.</description>
    </item>
  </channel>
</rss>

