<?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 freq - chisq test resuls for zero counts... in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-freq-chisq-test-resuls-for-zero-counts/m-p/320461#M16923</link>
    <description>&lt;P&gt;Hi Rick,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your responds &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; and help !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dileep&lt;/P&gt;</description>
    <pubDate>Wed, 21 Dec 2016 10:40:56 GMT</pubDate>
    <dc:creator>SB15</dc:creator>
    <dc:date>2016-12-21T10:40:56Z</dc:date>
    <item>
      <title>proc freq - chisq test resuls for zero counts...</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-freq-chisq-test-resuls-for-zero-counts/m-p/320442#M16921</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;below is my data, I want generate chisq p-value for 5 tests together. I have data for 3 tests (1,2,3) but don’t have counts for test 4 and 5. these should include in the model to get pvalue. any one could suggest what I have to do? the below is the dummy data for your reference!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data test;&lt;BR /&gt;test=1; trt=1; count=6;output;&lt;BR /&gt;test=1; trt=2; count=6;output;&lt;BR /&gt;test=2; trt=1; count=10;output;&lt;BR /&gt;test=2; trt=2; count=6;output;&lt;BR /&gt;test=3; trt=1; count=8;output;&lt;BR /&gt;test=3; trt=2; count=6;output;&lt;BR /&gt;test=4; trt=1; count=0;output;&lt;BR /&gt;test=4; trt=2; count=0;output;&lt;BR /&gt;test=5; trt=1; count=0;output;&lt;BR /&gt;test=5; trt=2; count=0;output;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc sort data=test;by test trt;run;&lt;BR /&gt;proc freq data=test order=data;&lt;BR /&gt;table test*trt/chisq;&lt;BR /&gt;weight count/zeros;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;*when i run this code i am getting below warning not getting chisqure pvalue;&lt;/P&gt;&lt;P&gt;Statistics for Table of test by trt&lt;/P&gt;&lt;P&gt;Row or column sum zero. No statistics computed for this table.&lt;/P&gt;&lt;P&gt;Sample Size = 42&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 09:14:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-freq-chisq-test-resuls-for-zero-counts/m-p/320442#M16921</guid>
      <dc:creator>SB15</dc:creator>
      <dc:date>2016-12-21T09:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq - chisq test resuls for zero counts...</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-freq-chisq-test-resuls-for-zero-counts/m-p/320456#M16922</link>
      <description>&lt;P&gt;In the chi-square test, you compute the quantities&lt;/P&gt;
&lt;P&gt;(Observed - Expected) / Expected&lt;/P&gt;
&lt;P&gt;for each cell, where Expected is the exoected value in the cell under the null hypothesis. For these data, the expected values for the cells in rows 4 and 5 are zero. Since 0/0 is mathematically undefined, it is not possible to compute the chi-square test. Consequently,&amp;nbsp;what you are asking for doesn't make sense.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What to do?&amp;nbsp;You can&lt;/P&gt;
&lt;P&gt;1. Collect more data until to observe counts in rows 4 and 5&lt;/P&gt;
&lt;P&gt;2. Drop rows 4 and 5 from the analysis&lt;/P&gt;
&lt;P&gt;3. Combine small categories into larger ones. For example, if the rows represent the categories "small", "medium", "large", "extra-large", and "huge", you can merge the last three categories into a new categoriy called "Big."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 10:20:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-freq-chisq-test-resuls-for-zero-counts/m-p/320456#M16922</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-12-21T10:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: proc freq - chisq test resuls for zero counts...</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-freq-chisq-test-resuls-for-zero-counts/m-p/320461#M16923</link>
      <description>&lt;P&gt;Hi Rick,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your responds &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; and help !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dileep&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 10:40:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-freq-chisq-test-resuls-for-zero-counts/m-p/320461#M16923</guid>
      <dc:creator>SB15</dc:creator>
      <dc:date>2016-12-21T10:40:56Z</dc:date>
    </item>
  </channel>
</rss>

