<?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 Convergence warning after running proc logisitc in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Convergence-warning-after-running-proc-logisitc/m-p/22752#M743</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; In the first model, nothing seems to be happening--I wonder about the response variable and quasi-complete separation.&amp;nbsp; I still think you should run with the ITPRINT option, to look at what the likelihood is doing at each iteration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the second model, the singularity problem rears its head.&amp;nbsp; Most likely, you have highly collinear variables in the model that convey almost exactly the same information.&amp;nbsp; What do crosstabs show?&amp;nbsp; I realize there are a lot of variables to check, but so long as the collinearity problem exists, the singularity problem is likely to arise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, addressing the question Reeza posed regarding number of observations, I think you are probably adequate in the second model, but near the edge for the first: 629 obs distributed over 47 indicator variables should be adequate, but only if the obs are evenly distributed.&amp;nbsp; If there are many combinations that are extremely sparse, convergence will be a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get to a workable situation, see if some of the variables can be eliminated.&amp;nbsp; Those that contain essentially identical information, based on crosstabs, can be combined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Mar 2012 12:07:01 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2012-03-07T12:07:01Z</dc:date>
    <item>
      <title>Convergence warning after running proc logisitc</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Convergence-warning-after-running-proc-logisitc/m-p/22748#M739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How&amp;nbsp; should I&amp;nbsp; deal with this warning which i got after running the proc logistic regression? is there any way to get rid of this? How do I know by how much to increase the MAXITER or what value to put for FCONVE GCONVE etc. I have never used these options before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Garamond; color: #0000ff; font-size: 12pt;"&gt;&lt;SPAN style="background-color: silver; font-size: 12pt;"&gt;"Convergence was not attained in 25 iterations. You may want to increase the maximum number of iterations (MAXITER= option) or change the convergence criteria (ABSFCONV=, FCONV=, GCONV=, XCONV= options) in the MODEL statement."&lt;/SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Garamond; color: #0000ff; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Garamond; color: #0000ff; font-size: 12pt;"&gt;the code looks like...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Garamond; color: #0000ff; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 14pt; background-color: white; font-family: Calibri;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 14pt; background-color: white; font-family: Calibri;"&gt;logistic&lt;/STRONG&gt; &lt;SPAN style="background-color: white; font-family: Calibri; color: blue; font-size: 14pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt; =library.nismicathcabg4 &lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: blue; font-size: 14pt;"&gt;descending&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt; ; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: blue; font-size: 14pt;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt;&amp;nbsp; female&amp;nbsp; (&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: blue; font-size: 14pt;"&gt;ref&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt;= first) dm dmcx htn_c&amp;nbsp; aids alcohol ANEMDEF arth race1(&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: blue; font-size: 14pt;"&gt;ref&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt;=first)&amp;nbsp; ZIPINC_QRTL(&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: blue; font-size: 14pt;"&gt;ref&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt;=first) hosp_location h_contrl(&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: blue; font-size: 14pt;"&gt;ref&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt;=first) hosp_teach&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt;bldloss chf chrnlung coag depress drug hypothy liver lymph lytes mets neuro obese para perivasc psych pulmcirc renlfail tumor &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt;ulcer valve wghtloss cararrhythmia/&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: blue; font-size: 14pt;"&gt;param&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt;=ref;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: blue; font-size: 14pt;"&gt;model&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt;&amp;nbsp; died=&amp;nbsp; age female&amp;nbsp; dm dmcx htn_c&amp;nbsp; aids alcohol ANEMDEF arth race1 zipinc_qrtl hosp_location h_contrl hosp_teach&amp;nbsp; TOTAL_DISC prday1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt;bldloss chf chrnlung coag depress drug hypothy liver lymph lytes mets neuro obese para perivasc psych pulmcirc renlfail tumor &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt;ulcer valve wghtloss cararrhythmia ; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: blue; font-size: 14pt;"&gt;where&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt; thrombolytic1=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 14pt; background-color: white; font-family: Calibri;"&gt;1&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt; and stemi=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 14pt; background-color: white; font-family: Calibri;"&gt;0&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: blue; font-size: 14pt;"&gt;weight&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt; discwt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: blue; font-size: 14pt;"&gt;title&lt;/SPAN&gt; &lt;SPAN style="background-color: white; font-family: Calibri; color: purple; font-size: 14pt;"&gt;'Logi Reg in-hosp mortality vs gender in POST-thrombolytic MI patients using "where" option with RACE +income&amp;nbsp; for nstemi ncluding PRDAY1'&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 14pt; background-color: white; font-family: Calibri;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: Calibri; color: black; font-size: 14pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 14pt; background-color: white; font-family: Calibri;"&gt;quit&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;File is attached with the proc logistic outout with convergence warning&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 00:59:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Convergence-warning-after-running-proc-logisitc/m-p/22748#M739</guid>
      <dc:creator>Ashwini_uci</dc:creator>
      <dc:date>2012-03-06T00:59:30Z</dc:date>
    </item>
    <item>
      <title>Convergence warning after running proc logisitc</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Convergence-warning-after-running-proc-logisitc/m-p/22749#M740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I would add /MAXITER=100 ITPRINT; to your model statement.&amp;nbsp; Examine the iteration history, and then you could address changing the convergence criteria depending on the behavior of the log likelihood.&amp;nbsp; However, just increasing the maximum number of iterations may solve your problems. It will not if the response surface is relatively flat and not well-characterized, i.e., you have 39 independent variables--the possibility of collinearity and lack of sufficient sample size to efficiently estimate all of these parameters can certainly lead to convergence problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 12:54:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Convergence-warning-after-running-proc-logisitc/m-p/22749#M740</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2012-03-06T12:54:09Z</dc:date>
    </item>
    <item>
      <title>Convergence warning after running proc logisitc</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Convergence-warning-after-running-proc-logisitc/m-p/22750#M741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How many observations do you have?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 23:49:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Convergence-warning-after-running-proc-logisitc/m-p/22750#M741</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-03-06T23:49:49Z</dc:date>
    </item>
    <item>
      <title>Convergence warning after running proc logisitc</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Convergence-warning-after-running-proc-logisitc/m-p/22751#M742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I have attached a file with proc logistic output with the convergence warning.. please have a look at it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 00:15:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Convergence-warning-after-running-proc-logisitc/m-p/22751#M742</guid>
      <dc:creator>Ashwini_uci</dc:creator>
      <dc:date>2012-03-07T00:15:47Z</dc:date>
    </item>
    <item>
      <title>Convergence warning after running proc logisitc</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Convergence-warning-after-running-proc-logisitc/m-p/22752#M743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; In the first model, nothing seems to be happening--I wonder about the response variable and quasi-complete separation.&amp;nbsp; I still think you should run with the ITPRINT option, to look at what the likelihood is doing at each iteration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the second model, the singularity problem rears its head.&amp;nbsp; Most likely, you have highly collinear variables in the model that convey almost exactly the same information.&amp;nbsp; What do crosstabs show?&amp;nbsp; I realize there are a lot of variables to check, but so long as the collinearity problem exists, the singularity problem is likely to arise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, addressing the question Reeza posed regarding number of observations, I think you are probably adequate in the second model, but near the edge for the first: 629 obs distributed over 47 indicator variables should be adequate, but only if the obs are evenly distributed.&amp;nbsp; If there are many combinations that are extremely sparse, convergence will be a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get to a workable situation, see if some of the variables can be eliminated.&amp;nbsp; Those that contain essentially identical information, based on crosstabs, can be combined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 12:07:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Convergence-warning-after-running-proc-logisitc/m-p/22752#M743</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2012-03-07T12:07:01Z</dc:date>
    </item>
    <item>
      <title>Convergence warning after running proc logisitc</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Convergence-warning-after-running-proc-logisitc/m-p/22753#M744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Only 8 subjects had the outcome (Died), so your model is hopelessly overspecified.&amp;nbsp; With that few outcomes, you can hardly fit one variable, let alone 47.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doc Muhlbaier&lt;/P&gt;&lt;P&gt;Duke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 16:15:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Convergence-warning-after-running-proc-logisitc/m-p/22753#M744</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2012-03-07T16:15:11Z</dc:date>
    </item>
    <item>
      <title>Convergence warning after running proc logisitc</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Convergence-warning-after-running-proc-logisitc/m-p/22754#M745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Steve. that helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 17:05:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Convergence-warning-after-running-proc-logisitc/m-p/22754#M745</guid>
      <dc:creator>Ashwini_uci</dc:creator>
      <dc:date>2012-03-13T17:05:23Z</dc:date>
    </item>
  </channel>
</rss>

