<?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 ERROR: All observations have the same response. No statistics are computed. in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-LOGISTIC-ERROR-All-observations-have-the-same-response-No/m-p/463093#M70441</link>
    <description>&lt;P&gt;I don't understand how those statistics could lead to the error you report. Could you please:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Paste in the portion of the SAS log that shows the submitted code&lt;/P&gt;
&lt;P&gt;2. Paste in the portion of the code that gives the error, along with the NOTE that says "The previous error was for the BY group where Variable1=... and Variable2=..."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 May 2018 18:33:46 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2018-05-17T18:33:46Z</dc:date>
    <item>
      <title>PROC LOGISTIC ERROR: All observations have the same response. No statistics are computed.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-LOGISTIC-ERROR-All-observations-have-the-same-response-No/m-p/463072#M70438</link>
      <description>&lt;P&gt;I am at a complete loss as to why I am getting this error...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc logistic data = dataset;&lt;/P&gt;&lt;P&gt;by variable1 variable2;&lt;/P&gt;&lt;P&gt;model response = variable3;&lt;/P&gt;&lt;P&gt;roc "variable3" variable3&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The dataset is sorted on the variables in the by statement and no errors are given except for the 'All observations have the same response. No statistics are computed.'&amp;nbsp; for one combination for variable1 and variable2.&amp;nbsp; There are no missing variables and there is a 90/10 split between 0s and 1s for the response variable.&amp;nbsp; I get the output I need but have no idea why I get this error for just one combination of variable1 and variable2.&amp;nbsp; Any help would be greatly appreciated!&amp;nbsp; Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 17:38:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-LOGISTIC-ERROR-All-observations-have-the-same-response-No/m-p/463072#M70438</guid>
      <dc:creator>lbogar314</dc:creator>
      <dc:date>2018-05-17T17:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC ERROR: All observations have the same response. No statistics are computed.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-LOGISTIC-ERROR-All-observations-have-the-same-response-No/m-p/463077#M70439</link>
      <description>&lt;P&gt;I suspect the answer will be revealed if you run the following code and substitute in the values of the BY group that is giving the error. Post the result.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data = dataset N NMISS MAX MIN MEAN STD;
where variable1=VAL1 and variable2=VAL2;
/* or for character:  where variable1="VAL1" and variable2="VAL2"; */
var response variable3;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 May 2018 17:54:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-LOGISTIC-ERROR-All-observations-have-the-same-response-No/m-p/463077#M70439</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-05-17T17:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC ERROR: All observations have the same response. No statistics are computed.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-LOGISTIC-ERROR-All-observations-have-the-same-response-No/m-p/463081#M70440</link>
      <description>&lt;P&gt;SAS Output&lt;/P&gt;&lt;DIV class="branch"&gt;&lt;DIV&gt;&lt;DIV align="left"&gt;Variable N N Miss Maximum Minimum Mean Std Dev &lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;438&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;438&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;TD&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;TD&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;1.0000000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1362.00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;TD&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;-218.0000000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;TD&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;0.8904110&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;737.7214612&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;TD&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;0.3127340&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;224.5709360&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 May 2018 18:03:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-LOGISTIC-ERROR-All-observations-have-the-same-response-No/m-p/463081#M70440</guid>
      <dc:creator>lbogar314</dc:creator>
      <dc:date>2018-05-17T18:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC ERROR: All observations have the same response. No statistics are computed.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-LOGISTIC-ERROR-All-observations-have-the-same-response-No/m-p/463093#M70441</link>
      <description>&lt;P&gt;I don't understand how those statistics could lead to the error you report. Could you please:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Paste in the portion of the SAS log that shows the submitted code&lt;/P&gt;
&lt;P&gt;2. Paste in the portion of the code that gives the error, along with the NOTE that says "The previous error was for the BY group where Variable1=... and Variable2=..."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 18:33:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-LOGISTIC-ERROR-All-observations-have-the-same-response-No/m-p/463093#M70441</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-05-17T18:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC ERROR: All observations have the same response. No statistics are computed.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-LOGISTIC-ERROR-All-observations-have-the-same-response-No/m-p/463107#M70443</link>
      <description>&lt;P&gt;That's what I thought.&amp;nbsp; I just ran it now though and it's working so I am not sure where I went wrong previously or if I misread the log (my apologies!).&amp;nbsp; Either way though- thank you so much for your quick response!&amp;nbsp; I really appreciate it.&amp;nbsp; And for future reference this error would happen if I 1. I had responses that were all the same (either all 1s or all 0s) or 2. Had missing data for one of the by variables??&amp;nbsp; Is that correct?&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 19:18:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-LOGISTIC-ERROR-All-observations-have-the-same-response-No/m-p/463107#M70443</guid>
      <dc:creator>lbogar314</dc:creator>
      <dc:date>2018-05-17T19:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC ERROR: All observations have the same response. No statistics are computed.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-LOGISTIC-ERROR-All-observations-have-the-same-response-No/m-p/463113#M70444</link>
      <description>&lt;P&gt;Mostly (1).&amp;nbsp; Missing values in the BY variables shouldn't be a problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That message indicates that the responses for the nonmissing&amp;nbsp;observations are&amp;nbsp;all the same value.&lt;/P&gt;
&lt;P&gt;That's why I asked you to check NMISS for the explanatory variable. For example, the following data sets each give the message:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Have;
do i = 1 to 10;
   x = rand("Normal");
   y = 1;  /* all Y's are 1 */
end;
run;

proc logistic data=Have;
model y = x;
run;

data HaveMiss;
input x y @@;
datalines;
2 1   3 1   . 0   4 1   . 0  
2 1   4 1   2 1   . 0   5 1
;

proc logistic data=HaveMiss;
model y = x;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 19:27:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-LOGISTIC-ERROR-All-observations-have-the-same-response-No/m-p/463113#M70444</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-05-17T19:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC ERROR: All observations have the same response. No statistics are computed.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-LOGISTIC-ERROR-All-observations-have-the-same-response-No/m-p/463116#M70445</link>
      <description>&lt;P&gt;Perfect, thank you so much!&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 19:30:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-LOGISTIC-ERROR-All-observations-have-the-same-response-No/m-p/463116#M70445</guid>
      <dc:creator>lbogar314</dc:creator>
      <dc:date>2018-05-17T19:30:41Z</dc:date>
    </item>
  </channel>
</rss>

