<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: WARNING: Ridging has failed to improve the loglikelihood. in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/WARNING-Ridging-has-failed-to-improve-the-loglikelihood/m-p/965082#M48410</link>
    <description>&lt;P&gt;Thank you Steve! So if the general association is significant if means that there is an effect of Variety in the PercStemEndRot?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;DIV align="center"&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Freq: Cochran-Mantel-Haenszel Statistics" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="c b header" colspan="5" scope="colgroup"&gt;Cochran-Mantel-Haenszel&amp;nbsp;Statistics&amp;nbsp;(Based&amp;nbsp;on&amp;nbsp;Table&amp;nbsp;Scores)&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r b header" scope="col"&gt;Statistic&lt;/TH&gt;
&lt;TH class="l b header" scope="col"&gt;Alternative Hypothesis&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;DF&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Value&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Prob&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;1&lt;/TH&gt;
&lt;TH class="l rowheader" scope="row"&gt;Nonzero Correlation&lt;/TH&gt;
&lt;TD class="r data"&gt;1&lt;/TD&gt;
&lt;TD class="r data"&gt;27.1483&lt;/TD&gt;
&lt;TD class="r data"&gt;&amp;lt;.0001&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;2&lt;/TH&gt;
&lt;TH class="l rowheader" scope="row"&gt;Row Mean Scores Differ&lt;/TH&gt;
&lt;TD class="r data"&gt;10&lt;/TD&gt;
&lt;TD class="r data"&gt;253.3270&lt;/TD&gt;
&lt;TD class="r data"&gt;&amp;lt;.0001&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;3&lt;/TH&gt;
&lt;TH class="l rowheader" scope="row"&gt;General Association&lt;/TH&gt;
&lt;TD class="r data"&gt;10&lt;/TD&gt;
&lt;TD class="r data"&gt;253.3270&lt;/TD&gt;
&lt;TD class="r data"&gt;&amp;lt;.0001&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Thu, 24 Apr 2025 19:18:46 GMT</pubDate>
    <dc:creator>palolix</dc:creator>
    <dc:date>2025-04-24T19:18:46Z</dc:date>
    <item>
      <title>WARNING: Ridging has failed to improve the loglikelihood.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/WARNING-Ridging-has-failed-to-improve-the-loglikelihood/m-p/965068#M48405</link>
      <description>&lt;P&gt;Dear SAS Community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am running a proc logistic model to compare the rotting percentage between avocado varieties. Since the outcome variable can only take two values (0 or 100%) I am analyzing it as a binomial var. I am using the firth option because otherwise I will get this warning:&amp;nbsp;There is possibly a quasi-complete separation of data points. The maximum likelihood&lt;BR /&gt;estimate may not exist.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;title2 'PercStemEndRot: Comparing varieties within Weeks for each Harvest across Season';&lt;BR /&gt;proc logistic data=one desc;&lt;BR /&gt;class Harvest Variety Wks/param=glm;&lt;BR /&gt;model PercStemEndRot=Harvest*Variety*Wks/firth;&lt;BR /&gt;slice Harvest*Variety*Wks/sliceby=Harvest*Wks&amp;nbsp; adjust=simulate(seed=1);&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When using the firth option I got this warning:&amp;nbsp;Ridging has failed to improve the loglikelihood. You may want to use a different ridging technique (RIDGING= option), or switch to using linesearch to reduce the step size&lt;BR /&gt;(RIDGING=NONE), or specify a new set of initial estimates (INEST= option).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there anything I could do to bypass this issue other than eliminating dep variables or interactions?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2025 18:19:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/WARNING-Ridging-has-failed-to-improve-the-loglikelihood/m-p/965068#M48405</guid>
      <dc:creator>palolix</dc:creator>
      <dc:date>2025-04-24T18:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Ridging has failed to improve the loglikelihood.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/WARNING-Ridging-has-failed-to-improve-the-loglikelihood/m-p/965071#M48406</link>
      <description>&lt;P&gt;First, your model specification is not producing the separate main effects and 2-way interactions. It only contains the 3-way interaction. However, all the degrees of freedom of the main effects and 2-way interactions are included in the 3-way interaction using that specification. So, it is effectively equivalent to writing&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; model PercStemEndRot=Harvest|Variety|Wks&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;which is the shorthand way to specify all of the main effects and interactions.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But the bottom line is that you'll need to simplify the model because the model complexity using all the effects (either explicitly or implicitly specified as noted above) is making the data too sparse. I suggest that you start with only the main effects model to see if it is successful:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; model PercStemEndRot=Harvest Variety Wks&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;and then add interactions one at a time as long as the fit succeeds - initially without FIRTH and then adding it if needed.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2025 18:31:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/WARNING-Ridging-has-failed-to-improve-the-loglikelihood/m-p/965071#M48406</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2025-04-24T18:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Ridging has failed to improve the loglikelihood.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/WARNING-Ridging-has-failed-to-improve-the-loglikelihood/m-p/965074#M48407</link>
      <description>&lt;P&gt;What does running a proc freq of this sort tell you:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=
tables harvest*wks*variety*&lt;SPAN&gt;PercStemEndRot/cmh;&lt;BR /&gt;&lt;/SPAN&gt;run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The CMH option should give you a test for association of variety with&amp;nbsp;&lt;SPAN&gt;PercStemEndRot, after adjusting for harvest and wks. In addition, it should let you know where the zeroes are in your data. Consolidating categories is probably the best way to handle this.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SteveDenham&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(I can't believe I am not offering some sort of exact approach to a generalized linear model, but I think this has two advantages - you will know where the zeroes are, and I believe you will still get some useful inferential information).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2025 18:44:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/WARNING-Ridging-has-failed-to-improve-the-loglikelihood/m-p/965074#M48407</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2025-04-24T18:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Ridging has failed to improve the loglikelihood.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/WARNING-Ridging-has-failed-to-improve-the-loglikelihood/m-p/965076#M48408</link>
      <description>Consolidating categories is a good point... that is another way in which the model becomes more complex and makes the data sparse. So, if any of your variables has a lot of categories, then merging (or eliminating) categories can reduce the sparseness and may ultimately allow the model with all interactions to be fit.</description>
      <pubDate>Thu, 24 Apr 2025 18:50:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/WARNING-Ridging-has-failed-to-improve-the-loglikelihood/m-p/965076#M48408</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2025-04-24T18:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Ridging has failed to improve the loglikelihood.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/WARNING-Ridging-has-failed-to-improve-the-loglikelihood/m-p/965081#M48409</link>
      <description>&lt;P&gt;Thank you very much StatDave, I will do that.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2025 19:15:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/WARNING-Ridging-has-failed-to-improve-the-loglikelihood/m-p/965081#M48409</guid>
      <dc:creator>palolix</dc:creator>
      <dc:date>2025-04-24T19:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Ridging has failed to improve the loglikelihood.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/WARNING-Ridging-has-failed-to-improve-the-loglikelihood/m-p/965082#M48410</link>
      <description>&lt;P&gt;Thank you Steve! So if the general association is significant if means that there is an effect of Variety in the PercStemEndRot?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;DIV align="center"&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Freq: Cochran-Mantel-Haenszel Statistics" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="c b header" colspan="5" scope="colgroup"&gt;Cochran-Mantel-Haenszel&amp;nbsp;Statistics&amp;nbsp;(Based&amp;nbsp;on&amp;nbsp;Table&amp;nbsp;Scores)&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r b header" scope="col"&gt;Statistic&lt;/TH&gt;
&lt;TH class="l b header" scope="col"&gt;Alternative Hypothesis&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;DF&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Value&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Prob&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;1&lt;/TH&gt;
&lt;TH class="l rowheader" scope="row"&gt;Nonzero Correlation&lt;/TH&gt;
&lt;TD class="r data"&gt;1&lt;/TD&gt;
&lt;TD class="r data"&gt;27.1483&lt;/TD&gt;
&lt;TD class="r data"&gt;&amp;lt;.0001&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;2&lt;/TH&gt;
&lt;TH class="l rowheader" scope="row"&gt;Row Mean Scores Differ&lt;/TH&gt;
&lt;TD class="r data"&gt;10&lt;/TD&gt;
&lt;TD class="r data"&gt;253.3270&lt;/TD&gt;
&lt;TD class="r data"&gt;&amp;lt;.0001&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;3&lt;/TH&gt;
&lt;TH class="l rowheader" scope="row"&gt;General Association&lt;/TH&gt;
&lt;TD class="r data"&gt;10&lt;/TD&gt;
&lt;TD class="r data"&gt;253.3270&lt;/TD&gt;
&lt;TD class="r data"&gt;&amp;lt;.0001&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 24 Apr 2025 19:18:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/WARNING-Ridging-has-failed-to-improve-the-loglikelihood/m-p/965082#M48410</guid>
      <dc:creator>palolix</dc:creator>
      <dc:date>2025-04-24T19:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Ridging has failed to improve the loglikelihood.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/WARNING-Ridging-has-failed-to-improve-the-loglikelihood/m-p/965086#M48411</link>
      <description>Yes, it means that Variety and PercStemEndRot are significantly related adjusting for harvest and wks which are used as stratifiers.</description>
      <pubDate>Thu, 24 Apr 2025 20:36:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/WARNING-Ridging-has-failed-to-improve-the-loglikelihood/m-p/965086#M48411</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2025-04-24T20:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Ridging has failed to improve the loglikelihood.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/WARNING-Ridging-has-failed-to-improve-the-loglikelihood/m-p/965090#M48412</link>
      <description>&lt;P&gt;Thanks StatDave&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2025 23:58:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/WARNING-Ridging-has-failed-to-improve-the-loglikelihood/m-p/965090#M48412</guid>
      <dc:creator>palolix</dc:creator>
      <dc:date>2025-04-24T23:58:32Z</dc:date>
    </item>
  </channel>
</rss>

