<?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: Proc logistic - There is a complete separation of data points in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-logistic-There-is-a-complete-separation-of-data-points/m-p/722669#M224110</link>
    <description>&lt;P&gt;This means that there is a single (or combination of variables) that uniquely identify your outcome.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can figure this out by using PROC FREQ against your variables to see which offer a complete separation.&lt;/P&gt;
&lt;P&gt;This also happens if you accidentally include the outcome or a similar variable in your model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=have;
table outcome * (variables in model);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/90839"&gt;@Mariloud&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am trying to predict a binary outcome using logistic regression, but I keep getting this warning 'There is a complete separation of data points. The maximum likelihood does not exist'. I tried the firth and exact statement to solve this issue, but still the same. Is there another way to solve this issue? Thanks&lt;/P&gt;
&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Mar 2021 20:05:28 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-03-01T20:05:28Z</dc:date>
    <item>
      <title>Proc logistic - There is a complete separation of data points</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-logistic-There-is-a-complete-separation-of-data-points/m-p/722517#M224043</link>
      <description>&lt;P&gt;I am trying to predict a binary outcome using logistic regression, but I keep getting this warning 'There is a complete separation of data points. The maximum likelihood does not exist'. I tried the firth and exact statement to solve this issue, but still the same. Is there another way to solve this issue? Thanks&lt;/P&gt;
&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 02:02:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-logistic-There-is-a-complete-separation-of-data-points/m-p/722517#M224043</guid>
      <dc:creator>Mariloud</dc:creator>
      <dc:date>2021-03-01T02:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Proc logistic - There is a complete separation of data points</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-logistic-There-is-a-complete-separation-of-data-points/m-p/722518#M224044</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/90839"&gt;@Mariloud&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your statement is quite ambigous, I am not able to understand what you want to say exactly. Apart from that, your post is related to PROC STAT so you better consider posting to this place next time&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/bd-p/statistical_procedures" target="_blank"&gt;https://communities.sas.com/t5/Statistical-Procedures/bd-p/statistical_procedures&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 02:10:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-logistic-There-is-a-complete-separation-of-data-points/m-p/722518#M224044</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-03-01T02:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Proc logistic - There is a complete separation of data points</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-logistic-There-is-a-complete-separation-of-data-points/m-p/722529#M224051</link>
      <description>&lt;P&gt;Maybe a demonstration:&lt;/P&gt;
&lt;PRE&gt;data example;
  input result demo $;
datalines;
1 M
1 M
1 M
0 F
0 F
0 F
;

proc logistic data=example;
   class demo;
   model result = demo;
run;&lt;/PRE&gt;
&lt;P&gt;shows this for the Log:&lt;/P&gt;
&lt;PRE&gt;NOTE: PROC LOGISTIC is modeling the probability that result=0. One way to change this to model
      the probability that result=1 is to specify the response variable option EVENT='1'.
WARNING: There is a complete separation of data points. The maximum likelihood estimate does not
         exist.
WARNING: The LOGISTIC procedure continues in spite of the above warning. Results shown are based
         on the last maximum likelihood iteration. Validity of the model fit is questionable.
NOTE: There were 6 observations read from the data set WORK.EXAMPLE.
NOTE: PROCEDURE LOGISTIC used (Total process time):
      real time           0.03 seconds
      cpu time            0.03 seconds

&lt;/PRE&gt;
&lt;P&gt;In this case it is simple to see that ALL results of each value come from only one value of the independent variable. If all of some combinations of the independent values only yield one result&amp;nbsp;and others the different result you have "separation"&lt;/P&gt;
&lt;P&gt;Fix it?&lt;/P&gt;
&lt;P&gt;It may mean reducing the number of independent variables or collecting more data.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 04:57:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-logistic-There-is-a-complete-separation-of-data-points/m-p/722529#M224051</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-03-01T04:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Proc logistic - There is a complete separation of data points</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-logistic-There-is-a-complete-separation-of-data-points/m-p/722669#M224110</link>
      <description>&lt;P&gt;This means that there is a single (or combination of variables) that uniquely identify your outcome.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can figure this out by using PROC FREQ against your variables to see which offer a complete separation.&lt;/P&gt;
&lt;P&gt;This also happens if you accidentally include the outcome or a similar variable in your model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=have;
table outcome * (variables in model);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/90839"&gt;@Mariloud&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am trying to predict a binary outcome using logistic regression, but I keep getting this warning 'There is a complete separation of data points. The maximum likelihood does not exist'. I tried the firth and exact statement to solve this issue, but still the same. Is there another way to solve this issue? Thanks&lt;/P&gt;
&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 20:05:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-logistic-There-is-a-complete-separation-of-data-points/m-p/722669#M224110</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-03-01T20:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Proc logistic - There is a complete separation of data points</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-logistic-There-is-a-complete-separation-of-data-points/m-p/724971#M225112</link>
      <description>&lt;P&gt;I see, thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 20:21:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-logistic-There-is-a-complete-separation-of-data-points/m-p/724971#M225112</guid>
      <dc:creator>Mariloud</dc:creator>
      <dc:date>2021-03-09T20:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: Proc logistic - There is a complete separation of data points</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-logistic-There-is-a-complete-separation-of-data-points/m-p/724972#M225113</link>
      <description>&lt;P&gt;Very helpful, thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 20:25:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-logistic-There-is-a-complete-separation-of-data-points/m-p/724972#M225113</guid>
      <dc:creator>Mariloud</dc:creator>
      <dc:date>2021-03-09T20:25:16Z</dc:date>
    </item>
  </channel>
</rss>

