<?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: How do I get the Odds ratio in Fisher Exact Test in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-get-the-Odds-ratio-in-Fisher-Exact-Test/m-p/620741#M29906</link>
    <description>&lt;P&gt;Thank you for your response&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;. It works well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need one more clarification. Once I get the odds ratio using OR and Exact, I just cross verified with Fisher Exact in R programming.&lt;/P&gt;&lt;P&gt;It returns the same pValue but different Odds ratio. May I know why it differs in the Odds ratio?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jan 2020 03:39:38 GMT</pubDate>
    <dc:creator>Sathish_jammy</dc:creator>
    <dc:date>2020-01-29T03:39:38Z</dc:date>
    <item>
      <title>How do I get the Odds ratio in Fisher Exact Test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-get-the-Odds-ratio-in-Fisher-Exact-Test/m-p/620461#M29893</link>
      <description>&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the Fisher Exact test to estimate the significance of 2 variables. It returns exact pValue but I failed to get the Odds ratio for the method.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=Beact.AllinOne;
tables var1*var2 / fisher norow nocol;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Kindly suggest the key code to get the Odds ratio for Fisher Exact Test.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Img.jpg" style="width: 423px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/35648iEEE76FACE8D95415/image-size/large?v=v2&amp;amp;px=999" role="button" title="Img.jpg" alt="Img.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 11:53:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-get-the-Odds-ratio-in-Fisher-Exact-Test/m-p/620461#M29893</guid>
      <dc:creator>Sathish_jammy</dc:creator>
      <dc:date>2020-01-28T11:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the Odds ratio in Fisher Exact Test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-get-the-Odds-ratio-in-Fisher-Exact-Test/m-p/620489#M29894</link>
      <description>&lt;P&gt;Add the EXACT statement and specify the OR option:&lt;/P&gt;
&lt;P&gt;EXACT OR;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also add OR to the TABLES statement to get the conventional estimates.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 13:36:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-get-the-Odds-ratio-in-Fisher-Exact-Test/m-p/620489#M29894</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-01-28T13:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the Odds ratio in Fisher Exact Test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-get-the-Odds-ratio-in-Fisher-Exact-Test/m-p/620741#M29906</link>
      <description>&lt;P&gt;Thank you for your response&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;. It works well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need one more clarification. Once I get the odds ratio using OR and Exact, I just cross verified with Fisher Exact in R programming.&lt;/P&gt;&lt;P&gt;It returns the same pValue but different Odds ratio. May I know why it differs in the Odds ratio?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 03:39:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-get-the-Odds-ratio-in-Fisher-Exact-Test/m-p/620741#M29906</guid>
      <dc:creator>Sathish_jammy</dc:creator>
      <dc:date>2020-01-29T03:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the Odds ratio in Fisher Exact Test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-get-the-Odds-ratio-in-Fisher-Exact-Test/m-p/620783#M29907</link>
      <description>&lt;P&gt;I do not know, but here is a link to &lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.2&amp;amp;docsetId=procstat&amp;amp;docsetTarget=procstat_freq_details70.htm&amp;amp;locale=en" target="_self"&gt;the PROC FREQ documentation that shows the formulas related to the odds ratio&lt;/A&gt;..The OR computation is pretty standard. Did you mean the confidence limits for the OR? SAS supports multiple CIs and sometimes the defaults used by one software differ from the results used by another software package.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All I can suggest is that you find the documentation for whatever R functions you are using and find out how they compute the OR (or CIs for the OR).&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 10:51:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-get-the-Odds-ratio-in-Fisher-Exact-Test/m-p/620783#M29907</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-01-29T10:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the Odds ratio in Fisher Exact Test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-get-the-Odds-ratio-in-Fisher-Exact-Test/m-p/773802#M37819</link>
      <description>&lt;P&gt;It appears SAS FREQ computes the odds ratio solely as the usual OR=(ad)/(bc) method. It does not provide the "exact" OR maximum likelihood estimate which is from Fisher's non-central hypergeometric distribution. These are not the same. It does appear as though SAS will estimate the "exact" confidence limits using Fisher's non-central hypergeometric distribution, but for some reason does not provide the MLE for the OR. The pmf from Fisher's non-central hypergeometric distribution can be considered a likelihood with the OR as the parameter. This is what the fisher.test() function uses in R.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can SAS add this to SAS/STAT or make it clear how to extract the "exact" OR if this approach already exists?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 23:59:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-get-the-Odds-ratio-in-Fisher-Exact-Test/m-p/773802#M37819</guid>
      <dc:creator>Jake_Olivier</dc:creator>
      <dc:date>2021-10-12T23:59:58Z</dc:date>
    </item>
  </channel>
</rss>

