<?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 Post hoc Power analysis in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Post-hoc-Power-analysis/m-p/607047#M29464</link>
    <description>&lt;P&gt;Using SAS 9.4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used a fisher's exact test with the MC estimation to compare 2 variables (one with 4 categories and 1 binary) so I have a 4x2 table with small cell frequencies. I want to perform a post hoc power analysis (I know it is just the pvalue represented in another way but it is a requirement). My question is what is the syntax for doing so? I previously used the code below for the for a 2 sample but I am cannot find about the 4 sample.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc power;&lt;BR /&gt;twosamplefreq test=fisher&lt;BR /&gt;groupproportions= (.07 .01)&lt;BR /&gt;alpha=.05&lt;BR /&gt;ntotal=.&lt;BR /&gt;power=.8;&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Nov 2019 16:32:50 GMT</pubDate>
    <dc:creator>GS2</dc:creator>
    <dc:date>2019-11-25T16:32:50Z</dc:date>
    <item>
      <title>Post hoc Power analysis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Post-hoc-Power-analysis/m-p/607047#M29464</link>
      <description>&lt;P&gt;Using SAS 9.4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used a fisher's exact test with the MC estimation to compare 2 variables (one with 4 categories and 1 binary) so I have a 4x2 table with small cell frequencies. I want to perform a post hoc power analysis (I know it is just the pvalue represented in another way but it is a requirement). My question is what is the syntax for doing so? I previously used the code below for the for a 2 sample but I am cannot find about the 4 sample.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc power;&lt;BR /&gt;twosamplefreq test=fisher&lt;BR /&gt;groupproportions= (.07 .01)&lt;BR /&gt;alpha=.05&lt;BR /&gt;ntotal=.&lt;BR /&gt;power=.8;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 16:32:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Post-hoc-Power-analysis/m-p/607047#M29464</guid>
      <dc:creator>GS2</dc:creator>
      <dc:date>2019-11-25T16:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Post hoc Power analysis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Post-hoc-Power-analysis/m-p/608238#M29479</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/194348"&gt;@GS2&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sorry to see that your question hasn't been answered yet.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It appears that this generalization of Fisher's exact test is beyond the scope of PROC POWER. So, you may need to perform a simulation to obtain the power (or sample size) in question. I found a possibly suitable macro TABGENERATION in the NESUG 2007 paper "&lt;A href="https://www.lexjansen.com/nesug/nesug07/po/po17.pdf" target="_blank" rel="noopener"&gt;An Algorithm to Compute Exact Power of an Unordered RxC Contingency Table&lt;/A&gt;". I haven't checked the technical details and in a quick test on two 2x2 tables it produced different results (by only a few percentage points, though) than PROC POWER, but this doesn't mean that they are wrong. PROC POWER uses a different approximation ("continuity-adjusted arcsine test", see &lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_power_details74.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt;), so the macro (whose processing time is much longer) might even be more accurate. You may want to check if it meets your requirements, in particular regarding the specific alternative hypothesis for which you want to compute the test's power.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2019 12:46:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Post-hoc-Power-analysis/m-p/608238#M29479</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2019-11-29T12:46:44Z</dc:date>
    </item>
  </channel>
</rss>

