<?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: Freeman-Halton test with a simple 3X3 table in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Freeman-Halton-test-with-a-simple-3X3-table/m-p/870442#M343799</link>
    <description>&lt;P&gt;It looks like you probably need to add a WEIGHT statement. Otherwise, each observation is assigned a frequency of 1.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Weight count;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 18 Apr 2023 21:09:11 GMT</pubDate>
    <dc:creator>Watts</dc:creator>
    <dc:date>2023-04-18T21:09:11Z</dc:date>
    <item>
      <title>Freeman-Halton test with a simple 3X3 table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Freeman-Halton-test-with-a-simple-3X3-table/m-p/870439#M343796</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to do a very simple FH test using a very simple 3X3 test using SAS 9.4. When I try a 2X2 table and the chi-square test it works but my 3X3 table just gets populated with ones after running the proc freq and I get wrong answers. Here is my code:&lt;/P&gt;
&lt;PRE&gt;data mydata;
   input  outcome $ msgroup $ count;
   datalines;
inc PT 6 
inc FT 11
inc surg 12
dec PT 3
dec FT 4
dec surg 2
unch PT 8
unch FT 2
unch surg 3
;
run;

proc freq data=mydata;
   tables outcome*msgroup  / chisq exact;
run;&lt;/PRE&gt;
&lt;P&gt;Do you know what is happening here?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 20:42:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Freeman-Halton-test-with-a-simple-3X3-table/m-p/870439#M343796</guid>
      <dc:creator>Primavera</dc:creator>
      <dc:date>2023-04-18T20:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: Freeman-Halton test with a simple 3X3 table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Freeman-Halton-test-with-a-simple-3X3-table/m-p/870442#M343799</link>
      <description>&lt;P&gt;It looks like you probably need to add a WEIGHT statement. Otherwise, each observation is assigned a frequency of 1.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Weight count;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Apr 2023 21:09:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Freeman-Halton-test-with-a-simple-3X3-table/m-p/870442#M343799</guid>
      <dc:creator>Watts</dc:creator>
      <dc:date>2023-04-18T21:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Freeman-Halton test with a simple 3X3 table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Freeman-Halton-test-with-a-simple-3X3-table/m-p/870577#M343839</link>
      <description>&lt;P&gt;Thank you very much. That was exactly what was missing from my proc freq.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 15:15:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Freeman-Halton-test-with-a-simple-3X3-table/m-p/870577#M343839</guid>
      <dc:creator>Primavera</dc:creator>
      <dc:date>2023-04-19T15:15:33Z</dc:date>
    </item>
  </channel>
</rss>

