<?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: &amp;quot;All observations have the same response.  No statistics are computed.&amp;quot; due to rare events? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-error-quot-All-observations-have-the-same-response/m-p/100709#M5212</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rick,&lt;/P&gt;&lt;P&gt;My model is really simple. My code is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=fun;&lt;/P&gt;&lt;P&gt;by id year quarter;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc logistic data=fun descending;&lt;/P&gt;&lt;P&gt;model flag= var1 var2 var3 var4 var5 var6 var7 var8 var9 var10 var11 var12;&lt;/P&gt;&lt;P&gt;output out=propensity_scores pred=prob_flag;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure where any filtering or coalescing may have occurred.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Feb 2013 11:38:22 GMT</pubDate>
    <dc:creator>lavernal</dc:creator>
    <dc:date>2013-02-07T11:38:22Z</dc:date>
    <item>
      <title>Proc Logistic error: "All observations have the same response.  No statistics are computed." due to rare events?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-error-quot-All-observations-have-the-same-response/m-p/100705#M5208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ran a logistic regression on my dataset and got the following error:&lt;/P&gt;&lt;P&gt;ERROR: All observations have the same response.&amp;nbsp; No statistics are computed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could it be so because I am modeling rare events? (~175 events out of 200,000+ observations)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any advice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 00:09:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-error-quot-All-observations-have-the-same-response/m-p/100705#M5208</guid>
      <dc:creator>lavernal</dc:creator>
      <dc:date>2013-02-07T00:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Logistic error: "All observations have the same response.  No statistics are computed." due to rare events?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-error-quot-All-observations-have-the-same-response/m-p/100706#M5209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, but more specifically I'd guess that there is some classification variable for which all the Y=1 belong to a single category.&amp;nbsp; For example, if you are using CLASS GENDER, maybe all of the Y=1 values are male.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using PROC FREQ to cross tabulate Y with your classification varialbles.&amp;nbsp; You might see an empty cell. That would indicate that you cannot use that classification variable as an explanatory variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 01:59:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-error-quot-All-observations-have-the-same-response/m-p/100706#M5209</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2013-02-07T01:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Logistic error: "All observations have the same response.  No statistics are computed." due to rare events?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-error-quot-All-observations-have-the-same-response/m-p/100707#M5210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the answer. I did not use any classification but instead, used proc logistic on my whole dataset. So there should not be a situation where there are all Y=1 or Y=0. That's also why I was confused that I got such an error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 04:47:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-error-quot-All-observations-have-the-same-response/m-p/100707#M5210</guid>
      <dc:creator>lavernal</dc:creator>
      <dc:date>2013-02-07T04:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Logistic error: "All observations have the same response.  No statistics are computed." due to rare events?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-error-quot-All-observations-have-the-same-response/m-p/100708#M5211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have a WHERE clause or other DATA= option that is filtering data? Or a format that coalesces values of an explanatory variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What does your MODEL statement look like?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 10:44:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-error-quot-All-observations-have-the-same-response/m-p/100708#M5211</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2013-02-07T10:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Logistic error: "All observations have the same response.  No statistics are computed." due to rare events?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-error-quot-All-observations-have-the-same-response/m-p/100709#M5212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rick,&lt;/P&gt;&lt;P&gt;My model is really simple. My code is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=fun;&lt;/P&gt;&lt;P&gt;by id year quarter;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc logistic data=fun descending;&lt;/P&gt;&lt;P&gt;model flag= var1 var2 var3 var4 var5 var6 var7 var8 var9 var10 var11 var12;&lt;/P&gt;&lt;P&gt;output out=propensity_scores pred=prob_flag;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure where any filtering or coalescing may have occurred.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 11:38:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-error-quot-All-observations-have-the-same-response/m-p/100709#M5212</guid>
      <dc:creator>lavernal</dc:creator>
      <dc:date>2013-02-07T11:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Logistic error: "All observations have the same response.  No statistics are computed." due to rare events?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-error-quot-All-observations-have-the-same-response/m-p/100710#M5213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm, interesting. And what do you get from running the following?&lt;/P&gt;&lt;P&gt;proc freq data=fun; tables flag; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 11:48:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-error-quot-All-observations-have-the-same-response/m-p/100710#M5213</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2013-02-07T11:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Logistic error: "All observations have the same response.  No statistics are computed." due to rare events?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-error-quot-All-observations-have-the-same-response/m-p/100711#M5214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the following output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cumulative&amp;nbsp;&amp;nbsp;&amp;nbsp; Cumulative&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Flag&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Frequency&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Percent&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Frequency&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Percent&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 252784&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 99.93&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 252784&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 99.93&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 174&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.07&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 252958&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100.00&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 11:57:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-error-quot-All-observations-have-the-same-response/m-p/100711#M5214</guid>
      <dc:creator>lavernal</dc:creator>
      <dc:date>2013-02-07T11:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Logistic error: "All observations have the same response.  No statistics are computed." due to rare events?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-error-quot-All-observations-have-the-same-response/m-p/100712#M5215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My guess is that there is a linear combination of your continuous variables that perfectly explain your response.&amp;nbsp; For example, if you are modeling "had a heart attack," it might be that "blood pressure," "cholesterol," and "stress level" do not individually predict the response, but when you include all of those variables in the model you discover that all of the heart attacks in the data can be predicted by the linear combination of those factors.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 13:05:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-error-quot-All-observations-have-the-same-response/m-p/100712#M5215</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2013-02-07T13:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Logistic error: "All observations have the same response.  No statistics are computed." due to rare events?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-error-quot-All-observations-have-the-same-response/m-p/100713#M5216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message should only be printed if FLAG takes a single value.&amp;nbsp; Do your predictors have any missing values?&amp;nbsp; If so, those observations are dropped from the model fitting, and if all observations with FLAG=1 are removed the message is displayed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 14:42:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-error-quot-All-observations-have-the-same-response/m-p/100713#M5216</guid>
      <dc:creator>bobderr</dc:creator>
      <dc:date>2013-02-07T14:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Logistic error: "All observations have the same response.  No statistics are computed." due to rare events?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-error-quot-All-observations-have-the-same-response/m-p/100714#M5217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bobderr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your advice. It seems that this is indeed the reason. When I removed some of the independent variables, the regression worked!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 18:26:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-error-quot-All-observations-have-the-same-response/m-p/100714#M5217</guid>
      <dc:creator>lavernal</dc:creator>
      <dc:date>2013-02-07T18:26:41Z</dc:date>
    </item>
  </channel>
</rss>

