<?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: Fisher's Exact in Proc Surveyfreq in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Fisher-s-Exact-in-Proc-Surveyfreq/m-p/606281#M176044</link>
    <description>&lt;P&gt;&lt;SPAN&gt;When there's an empty (zero-frequency) table cell, the Rao-Scott chi-square can't be computed because some quantities are undefined/missing.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Here's one possible work-around, if you want to use zero as the standard error for the missing cell(s).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Construct a data set that contains one observation for each empty table cell, and assign a small weight (relative to the real survey weights) to each of these observations -- e.g., 1e-8.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Merge that data set with the analysis dataset. Because of the very small weights, the additional observations should not affect the estimates of proportions and totals. But all table cells will have positive frequency and SURVEYFREQ will compute the Rao-Scott chi-square test.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Nov 2019 20:22:42 GMT</pubDate>
    <dc:creator>Watts</dc:creator>
    <dc:date>2019-11-21T20:22:42Z</dc:date>
    <item>
      <title>Fisher's Exact in Proc Surveyfreq</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Fisher-s-Exact-in-Proc-Surveyfreq/m-p/605479#M175736</link>
      <description>&lt;P&gt;Hello. I would like to run a fisher's exact test. However, my data is weighted so I am using proc surveyfreq to obtain p-values for my contingency tables. The exact option will not work with the proc surveyfreq command. Any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I should also add that one of my cells is 0. The nosparse option can suppress the cell but I still cannot get a p-value with the chisq option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 18:11:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Fisher-s-Exact-in-Proc-Surveyfreq/m-p/605479#M175736</guid>
      <dc:creator>eabc0351</dc:creator>
      <dc:date>2019-11-19T18:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Fisher's Exact in Proc Surveyfreq</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Fisher-s-Exact-in-Proc-Surveyfreq/m-p/605532#M175760</link>
      <description>&lt;P&gt;I don't think that there is such a thing as Fisher's Exact test for survey data, as the existence of the survey weights means you aren't dealing with integers in the analysis, which is what Exact tests require (but shhhh don't tell Sir Ronald)&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 21:16:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Fisher-s-Exact-in-Proc-Surveyfreq/m-p/605532#M175760</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-11-19T21:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Fisher's Exact in Proc Surveyfreq</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Fisher-s-Exact-in-Proc-Surveyfreq/m-p/606252#M176032</link>
      <description>&lt;P&gt;Yes, that is the error message that I am getting from SAS. &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt; do you know any solution for getting a p-value with survey data when one of the cells is 0?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 18:50:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Fisher-s-Exact-in-Proc-Surveyfreq/m-p/606252#M176032</guid>
      <dc:creator>eabc0351</dc:creator>
      <dc:date>2019-11-21T18:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Fisher's Exact in Proc Surveyfreq</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Fisher-s-Exact-in-Proc-Surveyfreq/m-p/606274#M176042</link>
      <description>&lt;P&gt;PROC SURVEYFREQ has other ways to obtain confidence intervals. There are many choices within the CL option in PROC SURVEYFREQ.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_surveyfreq_syntax06.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en#statug.surveyfreq.sfreqclwt" target="_blank"&gt;https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_surveyfreq_syntax06.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en#statug.surveyfreq.sfreqclwt&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 20:09:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Fisher-s-Exact-in-Proc-Surveyfreq/m-p/606274#M176042</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-11-21T20:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Fisher's Exact in Proc Surveyfreq</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Fisher-s-Exact-in-Proc-Surveyfreq/m-p/606281#M176044</link>
      <description>&lt;P&gt;&lt;SPAN&gt;When there's an empty (zero-frequency) table cell, the Rao-Scott chi-square can't be computed because some quantities are undefined/missing.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Here's one possible work-around, if you want to use zero as the standard error for the missing cell(s).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Construct a data set that contains one observation for each empty table cell, and assign a small weight (relative to the real survey weights) to each of these observations -- e.g., 1e-8.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Merge that data set with the analysis dataset. Because of the very small weights, the additional observations should not affect the estimates of proportions and totals. But all table cells will have positive frequency and SURVEYFREQ will compute the Rao-Scott chi-square test.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 20:22:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Fisher-s-Exact-in-Proc-Surveyfreq/m-p/606281#M176044</guid>
      <dc:creator>Watts</dc:creator>
      <dc:date>2019-11-21T20:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Fisher's Exact in Proc Surveyfreq</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Fisher-s-Exact-in-Proc-Surveyfreq/m-p/606335#M176057</link>
      <description>That worked perfectly without changing the proportions, as you said. Thanks!</description>
      <pubDate>Thu, 21 Nov 2019 22:54:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Fisher-s-Exact-in-Proc-Surveyfreq/m-p/606335#M176057</guid>
      <dc:creator>eabc0351</dc:creator>
      <dc:date>2019-11-21T22:54:06Z</dc:date>
    </item>
  </channel>
</rss>

