<?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: logistic regression: confusion matrix in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-confusion-matrix/m-p/224989#M11888</link>
    <description>&lt;P&gt;Thank you for taking the question.&lt;/P&gt;
&lt;P&gt;You are right it can't be fixed.The data contains 3 millions of observations with 70,000 missing values ( about 2%) that SAS ignores as usual.&lt;/P&gt;
&lt;P&gt;My question is why it would happen even thouh the data definitely has value Y=1. Does it have to do with the predictors?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Sep 2015 16:17:14 GMT</pubDate>
    <dc:creator>Marcusliat</dc:creator>
    <dc:date>2015-09-10T16:17:14Z</dc:date>
    <item>
      <title>logistic regression: confusion matrix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-confusion-matrix/m-p/224873#M11873</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I run a logistic regression with binary outcomes 0 and 1. I obtained the confusion matrix. However the predicted value of 1 is missing. All observations have a predictive value of 0. Looking at the predicted probabilities, the probability that Y = 1 is smaller than Y = 0 for all observations. Does anyone know the reason and how to fix this problem?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2015 01:37:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-confusion-matrix/m-p/224873#M11873</guid>
      <dc:creator>Marcusliat</dc:creator>
      <dc:date>2015-09-10T01:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: logistic regression: confusion matrix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-confusion-matrix/m-p/224948#M11883</link>
      <description>I don't know what you mean by "fixing the problem." You have data and you specified a model. According to the specified model, P(Y=1) &amp;lt; 0.5 for all observations.&lt;BR /&gt;&lt;BR /&gt;You can try changing the model (easy) or gathering more data (harder), especially for cases where Y=1.&lt;BR /&gt;&lt;BR /&gt;Are there any warning in the SAS log? If you are getting warnings about "quasi-complete separation," you might want to read the paper "Convergence Failures in Logistic Regression" by Paul Allison (2008): &lt;A href="http://www2.sas.com/proceedings/forum2008/360-2008.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/forum2008/360-2008.pdf&lt;/A&gt;</description>
      <pubDate>Thu, 10 Sep 2015 13:00:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-confusion-matrix/m-p/224948#M11883</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2015-09-10T13:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: logistic regression: confusion matrix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-confusion-matrix/m-p/224989#M11888</link>
      <description>&lt;P&gt;Thank you for taking the question.&lt;/P&gt;
&lt;P&gt;You are right it can't be fixed.The data contains 3 millions of observations with 70,000 missing values ( about 2%) that SAS ignores as usual.&lt;/P&gt;
&lt;P&gt;My question is why it would happen even thouh the data definitely has value Y=1. Does it have to do with the predictors?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2015 16:17:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-confusion-matrix/m-p/224989#M11888</guid>
      <dc:creator>Marcusliat</dc:creator>
      <dc:date>2015-09-10T16:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: logistic regression: confusion matrix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-confusion-matrix/m-p/224990#M11889</link>
      <description>&lt;P&gt;I forgot to mention that there was no problem of convergence. The log file did not display any warning&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2015 16:18:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-confusion-matrix/m-p/224990#M11889</guid>
      <dc:creator>Marcusliat</dc:creator>
      <dc:date>2015-09-10T16:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: logistic regression: confusion matrix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-confusion-matrix/m-p/225001#M11891</link>
      <description>&lt;P&gt;If I were to guess, it would be that the predictors have a very small effect, relative to the constant term in the model. Study the following simulated data. The explanatory makes a relatively small contribution to the linear model. Even though x variable is significant (small p-value), the variable just doesn't have much of an effect.&amp;nbsp; The predicted probabilities are all less than 0.5.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data a;
call streaminit(1234);
do i = 1 to 1000;
   x = rand("normal");
   eta = -1 + 0.15*x;
   y = rand("bernoulli", logistic(eta));
   output;
end;
run;

proc logist data=a plots(only)=fitplot;
model y(event='1') = x;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Sep 2015 17:32:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-confusion-matrix/m-p/225001#M11891</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2015-09-10T17:32:14Z</dc:date>
    </item>
  </channel>
</rss>

