<?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 Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/PROC-LOGISTIC-ERROR-All-observations-have-the-same-response-No/m-p/470297#M5729</link>
    <description>&lt;P&gt;This is not the same as actually LOOKING at the data set CHECK1, preferably using a SAS data set viewer, or less preferred using PROC PRINT.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jun 2018 13:06:08 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2018-06-14T13:06:08Z</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-Studio/PROC-LOGISTIC-ERROR-All-observations-have-the-same-response-No/m-p/470288#M5726</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm getting the following message&amp;nbsp;All observations have the same response. No statistics are computed. when I run the following code:&lt;/P&gt;&lt;P&gt;PROC SORT DATA=mydata.dataset;&lt;BR /&gt;by microchip_id;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA check1;&lt;BR /&gt;SET mydata.dataset;&lt;BR /&gt;lagid=lag(microchip_id);&lt;BR /&gt;lagresult=lag(result);&lt;BR /&gt;flag=0;&lt;BR /&gt;IF microchip_id = lagid AND lagresult=0 THEN flag=1;&lt;BR /&gt;IF age='Cub' THEN age= 'Juvenile';&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC LOGISTIC DATA=check1;&lt;BR /&gt;CLASS zone (REF='C') sweep (REF='8') age (REF='Juvenile') sex (REF='M') /PARAM=REF;&lt;BR /&gt;MODEL result (REF='0')=zone;&lt;BR /&gt;WHERE flag EQ 1 ;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It used to work but now it suddenly stopped working. Does anyone has any idea? I do have one missing value, but if I delete that value, the same error occurs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 12:41:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/PROC-LOGISTIC-ERROR-All-observations-have-the-same-response-No/m-p/470288#M5726</guid>
      <dc:creator>IreneBisschop</dc:creator>
      <dc:date>2018-06-14T12:41:20Z</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-Studio/PROC-LOGISTIC-ERROR-All-observations-have-the-same-response-No/m-p/470289#M5727</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;ERROR: All observations have the same response. No statistics are computed.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would think the best solution is for YOU to look at the data set CHECK1 and see what is happening. Since we don't have the data, there's really very little we can do to help you.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 12:43:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/PROC-LOGISTIC-ERROR-All-observations-have-the-same-response-No/m-p/470289#M5727</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-06-14T12:43:47Z</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-Studio/PROC-LOGISTIC-ERROR-All-observations-have-the-same-response-No/m-p/470291#M5728</link>
      <description>&lt;P&gt;I don't have any errors in my check1 file:&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;72&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;73 DATA check1;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;74 SET mydata.dataset;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Data file MYDATA.DATASET.DATA is in a format that is native to another host, or the file encoding does not match the session&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;encoding. Cross Environment Data Access will be used, which might require additional CPU resources and might reduce&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;performance.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;75 lagid=lag(microchip_id);&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;76 lagresult=lag(result);&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;77 flag=0;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;78 IF microchip_id = lagid AND lagresult=0 THEN flag=1;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;79 IF age='Cub' THEN age= 'Juvenile';&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;80 RUN;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: There were 1758 observations read from the data set MYDATA.DATASET.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The data set WORK.CHECK1 has 1758 observations and 99 variables.&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: DATA statement used (Total process time):&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;real time 0.07 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;cpu time 0.04 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;81&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;82 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;95&lt;/DIV&gt;&lt;/DIV&gt;&lt;PRE class="sasLog"&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 12:50:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/PROC-LOGISTIC-ERROR-All-observations-have-the-same-response-No/m-p/470291#M5728</guid>
      <dc:creator>IreneBisschop</dc:creator>
      <dc:date>2018-06-14T12:50: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-Studio/PROC-LOGISTIC-ERROR-All-observations-have-the-same-response-No/m-p/470297#M5729</link>
      <description>&lt;P&gt;This is not the same as actually LOOKING at the data set CHECK1, preferably using a SAS data set viewer, or less preferred using PROC PRINT.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 13:06:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/PROC-LOGISTIC-ERROR-All-observations-have-the-same-response-No/m-p/470297#M5729</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-06-14T13:06:08Z</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-Studio/PROC-LOGISTIC-ERROR-All-observations-have-the-same-response-No/m-p/470305#M5730</link>
      <description>&lt;P&gt;The "errors" in your check1 file are probably not tagged as such, but they should become apparent if you run the following step:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=check1;
tables result;
where flag=1 and cmiss(zone, sweep, age, sex)=0;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Jun 2018 13:26:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/PROC-LOGISTIC-ERROR-All-observations-have-the-same-response-No/m-p/470305#M5730</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2018-06-14T13:26:26Z</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-Studio/PROC-LOGISTIC-ERROR-All-observations-have-the-same-response-No/m-p/470310#M5732</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I get when I run this code&lt;/P&gt;&lt;DIV class="dijitContentPane dijitBorderContainer-child dijitBorderContainer-dijitContentPane dijitBorderContainerPane dijitAlignTop"&gt;&lt;DIV class="dijit dijitToolbar outputToolbar"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="dijitBorderContainer-child dijitBorderContainer-dijitTitlePane dijitBorderContainerPane dijitAlignTop dijitTitlePane"&gt;&lt;DIV class="dijitTitlePaneTitle dijitTitlePaneTitleClosed dijitClosed"&gt;&lt;DIV class="dijitTitlePaneTitleFocus"&gt;&lt;SPAN class="dijitTitlePaneTextNode"&gt;Table of Contents&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="dijitContentPane dijitBorderContainer-child dijitBorderContainer-dijitContentPane dijitBorderContainerPane dijitAlignCenter ods_88492ccb-fd53-4940-8dc6-c66f97201a7d"&gt;&lt;DIV class="body"&gt;&lt;DIV class="proc_title_group"&gt;&lt;P class="proctitle"&gt;The FREQ Procedure&lt;/P&gt;&lt;/DIV&gt;&amp;nbsp;result Frequency Percent CumulativeFrequency CumulativePercent0 &lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;386&lt;/TD&gt;&lt;TD&gt;100.00&lt;/TD&gt;&lt;TD&gt;386&lt;/TD&gt;&lt;TD&gt;100.00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 14 Jun 2018 13:32:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/PROC-LOGISTIC-ERROR-All-observations-have-the-same-response-No/m-p/470310#M5732</guid>
      <dc:creator>IreneBisschop</dc:creator>
      <dc:date>2018-06-14T13:32:48Z</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-Studio/PROC-LOGISTIC-ERROR-All-observations-have-the-same-response-No/m-p/470311#M5733</link>
      <description>&lt;P&gt;So of course, SAS is right, you have the same response for all observations.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 13:37:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/PROC-LOGISTIC-ERROR-All-observations-have-the-same-response-No/m-p/470311#M5733</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-06-14T13:37:28Z</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-Studio/PROC-LOGISTIC-ERROR-All-observations-have-the-same-response-No/m-p/470314#M5734</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/212808"&gt;@IreneBisschop&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is what I get when I run this code&lt;/P&gt;
&lt;DIV class="dijitContentPane dijitBorderContainer-child dijitBorderContainer-dijitContentPane dijitBorderContainerPane dijitAlignTop"&gt;
&lt;DIV class="dijit dijitToolbar outputToolbar"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="dijitBorderContainer-child dijitBorderContainer-dijitTitlePane dijitBorderContainerPane dijitAlignTop dijitTitlePane"&gt;
&lt;DIV class="dijitTitlePaneTitle dijitTitlePaneTitleClosed dijitClosed"&gt;
&lt;DIV class="dijitTitlePaneTitleFocus"&gt;&lt;SPAN class="dijitTitlePaneTextNode"&gt;Table of Contents&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="dijitContentPane dijitBorderContainer-child dijitBorderContainer-dijitContentPane dijitBorderContainerPane dijitAlignCenter ods_88492ccb-fd53-4940-8dc6-c66f97201a7d"&gt;
&lt;DIV class="body"&gt;
&lt;DIV class="proc_title_group"&gt;
&lt;P class="proctitle"&gt;The FREQ Procedure&lt;/P&gt;
&lt;/DIV&gt;
&amp;nbsp;result Frequency Percent CumulativeFrequency CumulativePercent0
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;386&lt;/TD&gt;
&lt;TD&gt;100.00&lt;/TD&gt;
&lt;TD&gt;386&lt;/TD&gt;
&lt;TD&gt;100.00&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Which means that all observations going into proc logistic have the same result, and therefore the statistics would be meaningless.&lt;/P&gt;
&lt;P&gt;So you need to go back one step and inspect your dataset mydata.dataset used in&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA check1;
SET mydata.dataset;
lagid=lag(microchip_id);
lagresult=lag(result);
flag=0;
IF microchip_id = lagid AND lagresult=0 THEN flag=1;
IF age='Cub' THEN age= 'Juvenile';
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and compare it with previous versions.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 13:40:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/PROC-LOGISTIC-ERROR-All-observations-have-the-same-response-No/m-p/470314#M5734</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-06-14T13:40: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-Studio/PROC-LOGISTIC-ERROR-All-observations-have-the-same-response-No/m-p/470318#M5735</link>
      <description>&lt;P&gt;Moreover, the WHERE condition (in the PROC FREQ step) seems to have reduced the number of usable observations for PROC LOGISTIC from 1758 to only 386. Possibly, missing values in variables SWEEP, AGE or SEX have contributed to this reduction. These three variables are used in the CLASS statement, but not necessarily so, as they're not part of the MODEL statement.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 13:49:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/PROC-LOGISTIC-ERROR-All-observations-have-the-same-response-No/m-p/470318#M5735</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2018-06-14T13:49:37Z</dc:date>
    </item>
  </channel>
</rss>

