<?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: proc power setup in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-power-setup/m-p/663299#M197968</link>
    <description>Yes, significant difference between the 2 groups</description>
    <pubDate>Thu, 18 Jun 2020 19:54:05 GMT</pubDate>
    <dc:creator>GS2</dc:creator>
    <dc:date>2020-06-18T19:54:05Z</dc:date>
    <item>
      <title>proc power setup</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-power-setup/m-p/663138#M197909</link>
      <description>&lt;P&gt;Using SAS 9.4&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am running a post-hoc power analysis (I understand it is not a great method but it is a request so I have to complete it). I have 2 groups with a total n=62 (group 1 n=49, group 2 n=13). With an alpha of 0.05 and the power set to 0.8, I want to find out what n would be needed in group 2 to show significance between the groups. I found the code below in the SAS help center but I am not sure my setup is correct. Specifically, I am not sure if I have the group proportions correct. Any help would be appreciated. Thank you&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= (.79 .21)&lt;BR /&gt;alpha= .05&lt;BR /&gt;npergroup=.&lt;BR /&gt;power= .8;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 12:31:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-power-setup/m-p/663138#M197909</guid>
      <dc:creator>GS2</dc:creator>
      <dc:date>2020-06-18T12:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: proc power setup</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-power-setup/m-p/663244#M197932</link>
      <description>&lt;P&gt;The groupproportions= option should specify the proportions of events in both groups, NOT the proportions of the group sizes to the total size. For a post-hoc analysis you would most likely write the observed proportions as the group proportions. If for example you observed 31/49 events in group 1 and 6/13 events in group 2, you would write groupproportions=0.63 0.46&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that you cannot keep one of the group sizes fixed and ask for the size of the other group in proc power. One way to do it anyway is to ask for the power and adjust iteratively the size of the second group until you get the power that you want&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc power;
twosamplefreq test=fisher
groupproportions= (.63 .46)
alpha= .05
groupns= (49, 13) /* &amp;lt;- adjust the size of group 2 until calculated power = 0.8 */
power= .;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hth&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 17:44:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-power-setup/m-p/663244#M197932</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2020-06-18T17:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: proc power setup</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-power-setup/m-p/663280#M197958</link>
      <description>&lt;P&gt;My groups are the event, the 49 is no for the event and 13 is yes for the event. That is why I took it out of the 62. Is this not correct?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 19:07:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-power-setup/m-p/663280#M197958</guid>
      <dc:creator>GS2</dc:creator>
      <dc:date>2020-06-18T19:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: proc power setup</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-power-setup/m-p/663286#M197961</link>
      <description>&lt;P&gt;So, you have a proportion of 49/62 events in your (single) sample. So you must be looking for the power of a one sample frequency test?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 19:19:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-power-setup/m-p/663286#M197961</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2020-06-18T19:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: proc power setup</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-power-setup/m-p/663291#M197962</link>
      <description>Between the 2 groups that I have (1 vs 2) I want to say I need x number to achieve significance. So group 1 has 49 and group 2 has 13 so how many in group 2 are needed to show significance.</description>
      <pubDate>Thu, 18 Jun 2020 19:30:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-power-setup/m-p/663291#M197962</guid>
      <dc:creator>GS2</dc:creator>
      <dc:date>2020-06-18T19:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: proc power setup</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-power-setup/m-p/663298#M197967</link>
      <description>&lt;P&gt;Significance of what? That group 1 is greater than group 2? Or what?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 19:51:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-power-setup/m-p/663298#M197967</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2020-06-18T19:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: proc power setup</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-power-setup/m-p/663299#M197968</link>
      <description>Yes, significant difference between the 2 groups</description>
      <pubDate>Thu, 18 Jun 2020 19:54:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-power-setup/m-p/663299#M197968</guid>
      <dc:creator>GS2</dc:creator>
      <dc:date>2020-06-18T19:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: proc power setup</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-power-setup/m-p/663308#M197974</link>
      <description>&lt;P&gt;proc power provides a calculation of the power of the exact binomial test for the proportion of events in a single sample. To calculate the power of detecting a difference in the number of events and non-events within a sample of size 62, when the event probability is 0.21 (= 13/62), you can do:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc power;
onesamplefreq 
    test = exact
    ntotal = 62
    nullproportion = 0.5
    alpha = 0.05
    proportion = 0.21  /* = 13 / 62 */
    power = .;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Jun 2020 20:19:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-power-setup/m-p/663308#M197974</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2020-06-18T20:19:43Z</dc:date>
    </item>
  </channel>
</rss>

