<?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 to do the Post hoc power analysis for cohort study in SAS? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-do-the-Post-hoc-power-analysis-for-cohort-study-in-SAS/m-p/816648#M40311</link>
    <description>&lt;P&gt;From the documentation for Proc Power in the Overview section:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV class="xis-refProc"&gt;
&lt;DIV id="statug.power.powoverview" class="AAsection"&gt;
&lt;DIV class="xis-title"&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;H2 class="xis-title"&gt;Overview: &lt;FONT style="background-color: #fcdec0;"&gt;POWER&lt;/FONT&gt; Procedure&lt;/H2&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;FONT style="background-color: #fcdec0;"&gt;Power&lt;/FONT&gt; and sample size analysis optimizes the resource usage and design of a study, improving chances of conclusive results with maximum efficiency. The &lt;FONT style="background-color: #fcdec0;"&gt;POWER&lt;/FONT&gt; procedure performs prospective &lt;FONT style="background-color: #fcdec0;"&gt;power&lt;/FONT&gt; and sample size analyses for a variety of goals, such as the following:&lt;/P&gt;
&lt;DIV&gt;
&lt;UL type="disc"&gt;
&lt;LI&gt;
&lt;P&gt;determining the sample size required to get a significant result with adequate probability (&lt;FONT style="background-color: #fcdec0;"&gt;power&lt;/FONT&gt;)&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;characterizing the &lt;FONT style="background-color: #fcdec0;"&gt;power&lt;/FONT&gt; of a study to detect a meaningful effect&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;conducting what-if analyses to assess sensitivity of the &lt;FONT style="background-color: #fcdec0;"&gt;power&lt;/FONT&gt; or required sample size to other factors&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;A class="indexterm" name="statug.power.a0000000004" target="_blank"&gt;&lt;/A&gt; &lt;A class="indexterm" name="statug.power.a0000000005" target="_blank"&gt;&lt;/A&gt; Here &lt;SPAN&gt;&lt;EM&gt;prospective&lt;/EM&gt;&lt;/SPAN&gt; indicates that the analysis pertains to planning for a future study. This is in contrast to &lt;SPAN&gt;&lt;EM&gt;retrospective&lt;/EM&gt;&lt;/SPAN&gt; &lt;FONT style="background-color: #fcdec0;"&gt;power&lt;/FONT&gt; analysis for a past study,&lt;FONT color="#FF00FF"&gt;&lt;U&gt;&lt;STRONG&gt; which is not supported by the procedure.&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Please note the highlighted text in magenta. So the answer to the "is this program correct" is "No".&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/423433"&gt;@Christina_fan&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Is this program right or not?&lt;/P&gt;
&lt;P&gt;proc power;&lt;/P&gt;
&lt;P&gt;twosamplefreq test=pchi&lt;/P&gt;
&lt;P&gt;oddsratio=0.35&lt;/P&gt;
&lt;P&gt;refproportion=0.15&lt;/P&gt;
&lt;P&gt;ntotal=250&lt;/P&gt;
&lt;P&gt;power=.;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jun 2022 14:41:18 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2022-06-06T14:41:18Z</dc:date>
    <item>
      <title>How to do the Post hoc power analysis for cohort study in SAS?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-do-the-Post-hoc-power-analysis-for-cohort-study-in-SAS/m-p/816582#M40310</link>
      <description>&lt;P&gt;Is this program right or not?&lt;/P&gt;&lt;P&gt;proc power;&lt;/P&gt;&lt;P&gt;twosamplefreq test=pchi&lt;/P&gt;&lt;P&gt;oddsratio=0.35&lt;/P&gt;&lt;P&gt;refproportion=0.15&lt;/P&gt;&lt;P&gt;ntotal=250&lt;/P&gt;&lt;P&gt;power=.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 02:19:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-do-the-Post-hoc-power-analysis-for-cohort-study-in-SAS/m-p/816582#M40310</guid>
      <dc:creator>Christina_fan</dc:creator>
      <dc:date>2022-06-06T02:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to do the Post hoc power analysis for cohort study in SAS?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-do-the-Post-hoc-power-analysis-for-cohort-study-in-SAS/m-p/816648#M40311</link>
      <description>&lt;P&gt;From the documentation for Proc Power in the Overview section:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV class="xis-refProc"&gt;
&lt;DIV id="statug.power.powoverview" class="AAsection"&gt;
&lt;DIV class="xis-title"&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;H2 class="xis-title"&gt;Overview: &lt;FONT style="background-color: #fcdec0;"&gt;POWER&lt;/FONT&gt; Procedure&lt;/H2&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;FONT style="background-color: #fcdec0;"&gt;Power&lt;/FONT&gt; and sample size analysis optimizes the resource usage and design of a study, improving chances of conclusive results with maximum efficiency. The &lt;FONT style="background-color: #fcdec0;"&gt;POWER&lt;/FONT&gt; procedure performs prospective &lt;FONT style="background-color: #fcdec0;"&gt;power&lt;/FONT&gt; and sample size analyses for a variety of goals, such as the following:&lt;/P&gt;
&lt;DIV&gt;
&lt;UL type="disc"&gt;
&lt;LI&gt;
&lt;P&gt;determining the sample size required to get a significant result with adequate probability (&lt;FONT style="background-color: #fcdec0;"&gt;power&lt;/FONT&gt;)&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;characterizing the &lt;FONT style="background-color: #fcdec0;"&gt;power&lt;/FONT&gt; of a study to detect a meaningful effect&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;conducting what-if analyses to assess sensitivity of the &lt;FONT style="background-color: #fcdec0;"&gt;power&lt;/FONT&gt; or required sample size to other factors&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;A class="indexterm" name="statug.power.a0000000004" target="_blank"&gt;&lt;/A&gt; &lt;A class="indexterm" name="statug.power.a0000000005" target="_blank"&gt;&lt;/A&gt; Here &lt;SPAN&gt;&lt;EM&gt;prospective&lt;/EM&gt;&lt;/SPAN&gt; indicates that the analysis pertains to planning for a future study. This is in contrast to &lt;SPAN&gt;&lt;EM&gt;retrospective&lt;/EM&gt;&lt;/SPAN&gt; &lt;FONT style="background-color: #fcdec0;"&gt;power&lt;/FONT&gt; analysis for a past study,&lt;FONT color="#FF00FF"&gt;&lt;U&gt;&lt;STRONG&gt; which is not supported by the procedure.&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Please note the highlighted text in magenta. So the answer to the "is this program correct" is "No".&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/423433"&gt;@Christina_fan&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Is this program right or not?&lt;/P&gt;
&lt;P&gt;proc power;&lt;/P&gt;
&lt;P&gt;twosamplefreq test=pchi&lt;/P&gt;
&lt;P&gt;oddsratio=0.35&lt;/P&gt;
&lt;P&gt;refproportion=0.15&lt;/P&gt;
&lt;P&gt;ntotal=250&lt;/P&gt;
&lt;P&gt;power=.;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 14:41:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-do-the-Post-hoc-power-analysis-for-cohort-study-in-SAS/m-p/816648#M40311</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-06-06T14:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to do the Post hoc power analysis for cohort study in SAS?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-do-the-Post-hoc-power-analysis-for-cohort-study-in-SAS/m-p/817007#M40322</link>
      <description>&lt;P&gt;Thank you so much for your explanation. So could you please tell me how to write the commands for the post hoc power analysis?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2022 08:48:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-do-the-Post-hoc-power-analysis-for-cohort-study-in-SAS/m-p/817007#M40322</guid>
      <dc:creator>Christina_fan</dc:creator>
      <dc:date>2022-06-08T08:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to do the Post hoc power analysis for cohort study in SAS?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-do-the-Post-hoc-power-analysis-for-cohort-study-in-SAS/m-p/818594#M40447</link>
      <description>&lt;P&gt;I am not quite sure I understand the question.&amp;nbsp; By "post hoc power", do you mean that you have run an analysis and now wish to calculate the power of that analysis?&amp;nbsp; The power in that case is either 0 or 1, depending on what cutoff is applied to your resultant p value - you either did not find a significant difference or you did find one.&amp;nbsp; With a sample of 1 (=number of analyses), the only possible values are 0 or 1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, a bootstrap approach may give you what you want.&amp;nbsp; Generate 5000 (or some other fairly large number) potential outcomes based on the results you currently have by sampling with replacement.&amp;nbsp; Then repeat the analysis for each of those potential outcomes, saving the p value of interest.&amp;nbsp; The proportion of samples which yield greater p values is a fairly good estimate of beta, so the power would be 1 - beta.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 15:12:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-do-the-Post-hoc-power-analysis-for-cohort-study-in-SAS/m-p/818594#M40447</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2022-06-16T15:12:10Z</dc:date>
    </item>
  </channel>
</rss>

