<?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 0 obs with chi square in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/0-obs-with-chi-square/m-p/18174#M3534</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure I understand your question. Is there a fixed relationship between NoReadm and YesReadm?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Feb 2012 19:35:10 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2012-02-29T19:35:10Z</dc:date>
    <item>
      <title>0 obs with chi square</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/0-obs-with-chi-square/m-p/18173#M3533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table that has multiple rows but within the table I have 2 columns. 1 is NoReadm and the other YesReadm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The no has 0 and the Yes has 1. There are 774 rows in all. 39 of those rows have the 1 and the rest are 0. I want a chi square and am doing the following code off the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc freq data = readm..final&lt;/P&gt;&lt;P&gt;tables noreadm * yesreadm/chisq;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting the output the freq procedure table of noreadm and yesreadm effective sample size = 0&lt;/P&gt;&lt;P&gt;frequency missing =774&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure what that means or how to fix this &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Feb 2012 19:27:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/0-obs-with-chi-square/m-p/18173#M3533</guid>
      <dc:creator>tmm</dc:creator>
      <dc:date>2012-02-29T19:27:26Z</dc:date>
    </item>
    <item>
      <title>0 obs with chi square</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/0-obs-with-chi-square/m-p/18174#M3534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure I understand your question. Is there a fixed relationship between NoReadm and YesReadm?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Feb 2012 19:35:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/0-obs-with-chi-square/m-p/18174#M3534</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-02-29T19:35:10Z</dc:date>
    </item>
    <item>
      <title>0 obs with chi square</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/0-obs-with-chi-square/m-p/18175#M3535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Not sure what you mean by fixed relationship. Do I need to add the two columns together somehow to get 774? Like have a column that is noreadm that has the 0 then yesreadm that has the 1 and then another column that maybe is count or something that houses the 0 and the 1's?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Feb 2012 19:37:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/0-obs-with-chi-square/m-p/18175#M3535</guid>
      <dc:creator>tmm</dc:creator>
      <dc:date>2012-02-29T19:37:29Z</dc:date>
    </item>
    <item>
      <title>0 obs with chi square</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/0-obs-with-chi-square/m-p/18176#M3536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Chi square tests whether there is a relation between two characteristics. For instance, if having NoReadm=1 changes the probability of having also YesReadm=1. Is this the kind of thing you are trying to test?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Feb 2012 19:43:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/0-obs-with-chi-square/m-p/18176#M3536</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-02-29T19:43:05Z</dc:date>
    </item>
    <item>
      <title>0 obs with chi square</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/0-obs-with-chi-square/m-p/18177#M3537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I'll follow on to PGStats question.&amp;nbsp; I think for any record you have either (noReadm=0, yesReadm=1) or (noReadm=1, yesReadm=0).&amp;nbsp; If that is the case, what other characteristic would drive this?&amp;nbsp; Without another characteristic, the probability of noReadm=0 is exactly that of yesReadm=1, and is exactly equal to 1 minus the probability of noReadm=1 (and 1 minus the probability of yesReadm=0).&amp;nbsp; A second characteristic would lead to a 2 x 2 or a 2 x k table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to test whether the proportion of noReadm is equal to a fixed value, you can do that with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc freq data=yourdata;&lt;/P&gt;&lt;P&gt;tables noReadm/chisq testp=0.5;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would test if the proportion of noReadm in your sample is equal to 0.5, using a chi-squared test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Feb 2012 20:13:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/0-obs-with-chi-square/m-p/18177#M3537</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2012-02-29T20:13:09Z</dc:date>
    </item>
    <item>
      <title>0 obs with chi square</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/0-obs-with-chi-square/m-p/18178#M3538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tmm,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you could show a snippet of your data.&amp;nbsp; I suspect that you may also have a data coding issue going on.&amp;nbsp; In the yesreadm variable, it is coded 1 if there is a readm present.&amp;nbsp; What is yesreadm coded if readm is NOT present.&amp;nbsp; If it is coded with a null ("."), that may be the heart of the matter and you need to add the MISSING option to the code that Steve posted last.&amp;nbsp; The MISSING option treats nulls as valid values for the computation of the test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doc Muhlbaier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Feb 2012 20:33:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/0-obs-with-chi-square/m-p/18178#M3538</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2012-02-29T20:33:21Z</dc:date>
    </item>
    <item>
      <title>0 obs with chi square</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/0-obs-with-chi-square/m-p/18179#M3539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Key questions (perhaps overlapping with the comments of others) ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you look at&amp;nbsp; NOREADM and YESREADM individually, how often are they missing?&amp;nbsp; Do they have any formats connected with them?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should be enough to make the answer obvious.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Feb 2012 21:03:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/0-obs-with-chi-square/m-p/18179#M3539</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2012-02-29T21:03:04Z</dc:date>
    </item>
  </channel>
</rss>

