<?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: Extrem odd ratio with firth logistic regression in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Extrem-odd-ratio-with-firth-logistic-regression/m-p/728394#M35308</link>
    <description>&lt;P&gt;Thanks for your answer !&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the exact logistic regression with Monte Carlo method but I get an error message for invalid character while I haven't change my data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've never done an exact logistic with MC method so maybe something's wrong with my statement..&lt;/P&gt;&lt;P&gt;also I tried différent values for n ... same result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc logistic data = work2 descending;&lt;BR /&gt;class gravite (ref='5')/param =ref;&lt;BR /&gt;class formation (ref='0')/param=ref;&lt;BR /&gt;model decision = gravite formation;&lt;BR /&gt;exact gravite formation/estimate = both;&lt;BR /&gt;exactoptions method=networkmc n=100;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d’écran 2021-03-23 à 11.16.06.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56297iD09E462CC7493F4F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture d’écran 2021-03-23 à 11.16.06.png" alt="Capture d’écran 2021-03-23 à 11.16.06.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Mar 2021 10:24:40 GMT</pubDate>
    <dc:creator>Gwenclimb</dc:creator>
    <dc:date>2021-03-23T10:24:40Z</dc:date>
    <item>
      <title>Extrem odd ratio with firth logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Extrem-odd-ratio-with-firth-logistic-regression/m-p/728253#M35297</link>
      <description>&lt;P&gt;Hello Everyone &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I run a logistic regression on my data and I have come across a quasi complete separation error...(understandable because there are no "gravite = 1 or 2" in the response =0 (see proc freq below)&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I tried Firth logistic option that fixed the separation issue ...but I still get extrem odd ratio.&amp;nbsp;&lt;/P&gt;&lt;P&gt;am I missing something and.. can I fix it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is my data set :&amp;nbsp;&lt;/P&gt;&lt;P&gt;outcome "decision" : 0 or 1&lt;/P&gt;&lt;P&gt;var "gravite" categorical : 1,2,3,4,5&amp;nbsp;&lt;/P&gt;&lt;P&gt;var "formation' categorical : 0, EM1, EM2, EM3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc logistic data = work2 descending;&lt;BR /&gt;class gravite (ref='5')/param =ref;&lt;/P&gt;&lt;P&gt;class formation (ref='0')/param=ref;&lt;BR /&gt;model decision = gravite formation/ firth ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d’écran 2021-03-22 à 19.19.33.png" style="width: 708px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56264i2A28C193BC75E63F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture d’écran 2021-03-22 à 19.19.33.png" alt="Capture d’écran 2021-03-22 à 19.19.33.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d’écran 2021-03-22 à 19.33.41.png" style="width: 724px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56265iEB3EF6F825AC653C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture d’écran 2021-03-22 à 19.33.41.png" alt="Capture d’écran 2021-03-22 à 19.33.41.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 18:47:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Extrem-odd-ratio-with-firth-logistic-regression/m-p/728253#M35297</guid>
      <dc:creator>Gwenclimb</dc:creator>
      <dc:date>2021-03-22T18:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Extrem odd ratio with firth logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Extrem-odd-ratio-with-firth-logistic-regression/m-p/728262#M35298</link>
      <description>&lt;P&gt;The zero counts make some model parameters infinite, so the odds ratios are too. You could merge those two categories with the third one. Or, you could try using the EXACT statement, but the data set is probably too large for exact analysis. You might be able to do it if you use the Monte Carlo method by specifying METHOD=NETWORKMC and N= with a value that isn't too large in the EXACTOPTIONS statement.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 19:12:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Extrem-odd-ratio-with-firth-logistic-regression/m-p/728262#M35298</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-03-22T19:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Extrem odd ratio with firth logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Extrem-odd-ratio-with-firth-logistic-regression/m-p/728394#M35308</link>
      <description>&lt;P&gt;Thanks for your answer !&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the exact logistic regression with Monte Carlo method but I get an error message for invalid character while I haven't change my data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've never done an exact logistic with MC method so maybe something's wrong with my statement..&lt;/P&gt;&lt;P&gt;also I tried différent values for n ... same result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc logistic data = work2 descending;&lt;BR /&gt;class gravite (ref='5')/param =ref;&lt;BR /&gt;class formation (ref='0')/param=ref;&lt;BR /&gt;model decision = gravite formation;&lt;BR /&gt;exact gravite formation/estimate = both;&lt;BR /&gt;exactoptions method=networkmc n=100;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d’écran 2021-03-23 à 11.16.06.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56297iD09E462CC7493F4F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture d’écran 2021-03-23 à 11.16.06.png" alt="Capture d’écran 2021-03-23 à 11.16.06.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 10:24:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Extrem-odd-ratio-with-firth-logistic-regression/m-p/728394#M35308</guid>
      <dc:creator>Gwenclimb</dc:creator>
      <dc:date>2021-03-23T10:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Extrem odd ratio with firth logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Extrem-odd-ratio-with-firth-logistic-regression/m-p/728422#M35309</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;While I cannot help with the error message (I don't grasp why you would have 'invalid characters'), I can suggest you to read these articles. I'm sure you are interested, given your original question:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Paper 3018-2019 (SAS Global Forum 2019)&lt;BR /&gt;Predicting Inside the Dead Zone of Complete Separation in Logistic Regression&lt;BR /&gt;Robert Derr, SAS Institute Inc., Cary, NC&lt;BR /&gt;&lt;A href="https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/3018-2019.pdf" target="_blank"&gt;https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/3018-2019.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Odds ratio plots with a logarithmic scale in SAS&lt;BR /&gt;By Rick Wicklin on The DO Loop &lt;BR /&gt;July 29, 2015&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/iml/2015/07/29/or-plots-log-scale.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2015/07/29/or-plots-log-scale.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 13:13:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Extrem-odd-ratio-with-firth-logistic-regression/m-p/728422#M35309</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-03-23T13:13:28Z</dc:date>
    </item>
  </channel>
</rss>

