<?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 exact test running forever in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Fisher-exact-test-running-forever/m-p/591277#M15174</link>
    <description>&lt;P&gt;Forever, as in minutes, or hours, or days???&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How many observations in your data set?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might want to read the section "Computational Resources" here:&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=procstat&amp;amp;docsetTarget=procstat_freq_details106.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=procstat&amp;amp;docsetTarget=procstat_freq_details106.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Sep 2019 19:44:11 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-09-24T19:44:11Z</dc:date>
    <item>
      <title>Fisher exact test running forever</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Fisher-exact-test-running-forever/m-p/591276#M15173</link>
      <description>&lt;P&gt;I am trying to calculate the fishers score on 4 variables but it seems to be taking forever. Could it be that the code is wrong? It did not show any error in the log. Here is my code;&lt;/P&gt;&lt;P&gt;proc freq data = &amp;amp;curlib..IRAOut order = data;&lt;BR /&gt;tables&amp;nbsp;CurTotal * Basetotal * CurTrans * BaseTrans / fishers;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there another way to calculate the fishers score? when I used the chisq option it did not give me the fscore.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 19:40:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Fisher-exact-test-running-forever/m-p/591276#M15173</guid>
      <dc:creator>Stacy1</dc:creator>
      <dc:date>2019-09-24T19:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Fisher exact test running forever</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Fisher-exact-test-running-forever/m-p/591277#M15174</link>
      <description>&lt;P&gt;Forever, as in minutes, or hours, or days???&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How many observations in your data set?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might want to read the section "Computational Resources" here:&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=procstat&amp;amp;docsetTarget=procstat_freq_details106.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=procstat&amp;amp;docsetTarget=procstat_freq_details106.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 19:44:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Fisher-exact-test-running-forever/m-p/591277#M15174</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-09-24T19:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Fisher exact test running forever</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Fisher-exact-test-running-forever/m-p/591289#M15181</link>
      <description>&lt;P&gt;It was running for several hours so I terminated the program. My data set has 2268 observations.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 20:13:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Fisher-exact-test-running-forever/m-p/591289#M15181</guid>
      <dc:creator>Stacy1</dc:creator>
      <dc:date>2019-09-24T20:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Fisher exact test running forever</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Fisher-exact-test-running-forever/m-p/591292#M15184</link>
      <description>&lt;P&gt;How many levels do your 4 variables have? With names like CurTotal, Basetotal , CurTrans&amp;nbsp;and BaseTrans&amp;nbsp;I would be tempted to think that these really aren't categorical variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would be tempted to run something like:&lt;/P&gt;
&lt;PRE&gt;ods select nlevels;
proc freq data=data = &amp;amp;curlib..IRAOut  nlevels;
   tables CurTotal   Basetotal   CurTrans   BaseTrans ;
run;&lt;/PRE&gt;
&lt;P&gt;Then look at the product of the number of levels reported combined. Since this code is going to make a separate table of curtrans*basetrans for each combination of curtotal and basetotal in the data you may be seeing the effect of creating a very large amount of output: one row and one column for each value of curtrans*basetrans&amp;nbsp;. If you have 10 levels of curtrans and 10 of basetrans that is a 10 by 10 table with the associated frequencies and percentages. If in addition you have 10 levels of each of your total variables that is 100 tables of 10 by 10 output. If you have more levels that gets worse.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And from the Freq documentation for the Fisher Tables option:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;&lt;/SPAN&gt;: PROC FREQ computes exact tests by using fast and efficient algorithms that are superior to direct enumeration. Exact tests are appropriate when a data set is small, sparse, skewed, or heavily tied. For some large problems, computation of exact tests might require a substantial amount of time and memory. Consider using asymptotic tests for such problems. Alternatively, when asymptotic methods might not be sufficient for such large problems, consider using Monte Carlo estimation of exact &lt;SPAN class=" aa-mathtext"&gt;p&lt;/SPAN&gt;-values. You can request Monte Carlo estimation by specifying the &lt;A href="http://127.0.0.1:62439/help/procstat.hlp/procstat_freq_syntax03.htm#procstat.freq.freqmc" target="_blank"&gt;MC&lt;/A&gt; &lt;SPAN class=" aa-argument"&gt;computation-option&lt;/SPAN&gt; in the EXACT statement. See the section &lt;A href="http://127.0.0.1:62439/help/procstat.hlp/procstat_freq_details98.htm#procstat.freq.freqcompres" target="_blank"&gt;Computational Resources&lt;/A&gt; for more information.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So you may want to consider the Exact statement instead of the tables option.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 20:15:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Fisher-exact-test-running-forever/m-p/591292#M15184</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-09-24T20:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Fisher exact test running forever</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Fisher-exact-test-running-forever/m-p/591297#M15185</link>
      <description>&lt;P&gt;Fisher scoring is not the same as Fisher's exact test.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 20:36:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Fisher-exact-test-running-forever/m-p/591297#M15185</guid>
      <dc:creator>Watts</dc:creator>
      <dc:date>2019-09-24T20:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Fisher exact test running forever</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Fisher-exact-test-running-forever/m-p/591303#M15189</link>
      <description>&lt;P&gt;You only calculate Fisher's Test when your number of records in a particular group is low, usually less than 5 or 10. Otherwise, the Chi Square Test will have the same values.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're trying to calculate the Fisher Score,&amp;nbsp;&lt;A href="https://arxiv.org/abs/1202.3725" target="_blank"&gt;https://arxiv.org/abs/1202.3725&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;That's a very different calculation/problem.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/291684"&gt;@Stacy1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am trying to calculate the fishers score on 4 variables but it seems to be taking forever. Could it be that the code is wrong? It did not show any error in the log. Here is my code;&lt;/P&gt;
&lt;P&gt;proc freq data = &amp;amp;curlib..IRAOut order = data;&lt;BR /&gt;tables&amp;nbsp;CurTotal * Basetotal * CurTrans * BaseTrans / fishers;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there another way to calculate the fishers score? when I used the chisq option it did not give me the fscore.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 20:51:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Fisher-exact-test-running-forever/m-p/591303#M15189</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-09-24T20:51:21Z</dc:date>
    </item>
  </channel>
</rss>

