<?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: Power analysis with more than 2 groups in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Power-analysis-with-more-than-2-groups/m-p/681085#M205964</link>
    <description>That is more what I was asking. if anyone knows a method other than proc power to perform this because, as you said, it does not appear that proc power will be helpful.</description>
    <pubDate>Wed, 02 Sep 2020 17:19:42 GMT</pubDate>
    <dc:creator>GS2</dc:creator>
    <dc:date>2020-09-02T17:19:42Z</dc:date>
    <item>
      <title>Power analysis with more than 2 groups</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Power-analysis-with-more-than-2-groups/m-p/681001#M205935</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using SAS 9.4&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am looking to run a power analysis. I have a total n=34 with 4 groups (n=10 10 10 4). I would like to find the n per group needed for a power of 80% at an alpha of 0.05. Any help would be appreciated. Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 13:48:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Power-analysis-with-more-than-2-groups/m-p/681001#M205935</guid>
      <dc:creator>GS2</dc:creator>
      <dc:date>2020-09-02T13:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Power analysis with more than 2 groups</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Power-analysis-with-more-than-2-groups/m-p/681036#M205943</link>
      <description>&lt;P&gt;What kind of test do you intend to do?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After you set the parameters in Proc Power for the appropriate test and set power=.8 the resulting n is the n for that power pretty much. So "by group" doesn't make much sense in this context.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Power analysis should be done before data collection so you can collect enough records for your design. If you have already collected the data it is kind of late.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 15:37:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Power-analysis-with-more-than-2-groups/m-p/681036#M205943</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-09-02T15:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Power analysis with more than 2 groups</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Power-analysis-with-more-than-2-groups/m-p/681046#M205950</link>
      <description>I will be doing a wilcoxon, I am looking at a continuous ROM variable by the 4 groups mentioned. I agree there is a lot of literature about the lack of utility for post hoc power analyses.</description>
      <pubDate>Wed, 02 Sep 2020 16:05:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Power-analysis-with-more-than-2-groups/m-p/681046#M205950</guid>
      <dc:creator>GS2</dc:creator>
      <dc:date>2020-09-02T16:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Power analysis with more than 2 groups</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Power-analysis-with-more-than-2-groups/m-p/681054#M205955</link>
      <description>&lt;P&gt;Can you show an example of the code you intend to conduct the test?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure that Proc Power is going to be that helpful for other than a two sample wilcoxon (hence the statement twosamplewilcoxon in proc power)&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 16:36:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Power-analysis-with-more-than-2-groups/m-p/681054#M205955</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-09-02T16:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Power analysis with more than 2 groups</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Power-analysis-with-more-than-2-groups/m-p/681085#M205964</link>
      <description>That is more what I was asking. if anyone knows a method other than proc power to perform this because, as you said, it does not appear that proc power will be helpful.</description>
      <pubDate>Wed, 02 Sep 2020 17:19:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Power-analysis-with-more-than-2-groups/m-p/681085#M205964</guid>
      <dc:creator>GS2</dc:creator>
      <dc:date>2020-09-02T17:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Power analysis with more than 2 groups</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Power-analysis-with-more-than-2-groups/m-p/681107#M205970</link>
      <description>&lt;P&gt;Do you know the procedure and options you are going to use to analyze the data?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If not, then it may be too early to talk about power. If so, then show an example of the code. There may be other approaches someone may come up with.&lt;/P&gt;
&lt;P&gt;Since most of the actual Wilcoxon analysis is with pairs of data then this question is I think quite relevant. Perhaps your intended analysis might mean the GLMPOWER is more appropriate such as doing ANOVA of some flavor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Power is tied to analysis, hence the way the statements in proc power are set up.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 17:39:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Power-analysis-with-more-than-2-groups/m-p/681107#M205970</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-09-02T17:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Power analysis with more than 2 groups</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Power-analysis-with-more-than-2-groups/m-p/681109#M205971</link>
      <description>Below is fake data for how my data set looks and the code I would use to run the wilcoxon&lt;BR /&gt;&lt;BR /&gt;data have;&lt;BR /&gt;	input ID side $ group $ rom;&lt;BR /&gt;	cards;&lt;BR /&gt;	1 left A 144&lt;BR /&gt;	1 left B 144&lt;BR /&gt;	1 left C 144&lt;BR /&gt;	1 right A 129&lt;BR /&gt;	1 right B 129&lt;BR /&gt;	1 right C 129&lt;BR /&gt;	2 left A 100&lt;BR /&gt;	2 left B 100&lt;BR /&gt;	2 left C 100&lt;BR /&gt;	2 left D 100&lt;BR /&gt;	2 right A 120&lt;BR /&gt;	2 right B 120&lt;BR /&gt;	2 right C 120&lt;BR /&gt;	2 right D 120&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc npar1way data = have wilcoxon;	&lt;BR /&gt;	class group;&lt;BR /&gt;	var rom;&lt;BR /&gt;	OUTPUT OUT= KW_PVALS (KEEP=_VAR_ P_KW);&lt;BR /&gt;RUN;&lt;BR /&gt;PROC PRINT DATA = KW_PVALS;&lt;BR /&gt;RUN;</description>
      <pubDate>Wed, 02 Sep 2020 17:52:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Power-analysis-with-more-than-2-groups/m-p/681109#M205971</guid>
      <dc:creator>GS2</dc:creator>
      <dc:date>2020-09-02T17:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Power analysis with more than 2 groups</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Power-analysis-with-more-than-2-groups/m-p/681138#M205993</link>
      <description>&lt;P&gt;Please note that the TEST used is a Kruskal-Wallis that uses Wilcoxon Scores. So not actually a Wilcoxon test.&lt;/P&gt;
&lt;P&gt;The exact distribution of the Kruskal-Wallis is more than a bit difficult for many sample sizes. So a Chi-square approximation using k-1 degrees of freedom is used, where k is the number of samples.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 19:12:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Power-analysis-with-more-than-2-groups/m-p/681138#M205993</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-09-02T19:12:30Z</dc:date>
    </item>
  </channel>
</rss>

