<?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 Sample size calculation for three groups in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Sample-size-calculation-for-three-groups/m-p/458600#M23955</link>
    <description>&lt;P&gt;Guys, I really need help with this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to do a sample size calculation, for comparison of means of three groups as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let ngroup=34; 	        /*n per group*/
%let sd=15;			/*standard deviation*/
%let power=0.80;	        /*Required power*/
%let m1=20;			/*Mean group 1*/
%let m2=30;			/*Mean group 2*/
%let m3=30;			/*Mean group 3*/
%let alpha=0.05;		/*Mean group 3*/


proc power; 
  onewayanova test = overall
  groupmeans = &amp;amp;m1 | &amp;amp;m2 | &amp;amp;m3 
  stddev = &amp;amp;sd 
  npergroup =  &amp;amp;ngroup 
  power = .
  alpha=&amp;amp;alpha;
   plot x=n min=1 max=100 npoints=20;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OK so this is telling me that with 34 per group I will get a power of 0.80&lt;/P&gt;
&lt;P&gt;Correct me if I am wrong, but this will only tell you how strong your power is to detect overall difference, and not between group differences.&lt;/P&gt;
&lt;P&gt;I am also interested in taking into account pairwise comparisons when doing the sample size calculation, I can think of two strategies and I dont know if they are adequate:&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp;use&amp;nbsp;&amp;nbsp;Bonferroni correction dropping the alpha to 0.05/ngroup(3)=0.017&lt;/P&gt;
&lt;P&gt;or use contrast but i am not sure if contrasts are right and what /how to use them&lt;/P&gt;
&lt;P&gt;Could anyone please please try o help me out with these questions?&lt;/P&gt;</description>
    <pubDate>Mon, 30 Apr 2018 11:50:09 GMT</pubDate>
    <dc:creator>ammarhm</dc:creator>
    <dc:date>2018-04-30T11:50:09Z</dc:date>
    <item>
      <title>Sample size calculation for three groups</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sample-size-calculation-for-three-groups/m-p/458600#M23955</link>
      <description>&lt;P&gt;Guys, I really need help with this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to do a sample size calculation, for comparison of means of three groups as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let ngroup=34; 	        /*n per group*/
%let sd=15;			/*standard deviation*/
%let power=0.80;	        /*Required power*/
%let m1=20;			/*Mean group 1*/
%let m2=30;			/*Mean group 2*/
%let m3=30;			/*Mean group 3*/
%let alpha=0.05;		/*Mean group 3*/


proc power; 
  onewayanova test = overall
  groupmeans = &amp;amp;m1 | &amp;amp;m2 | &amp;amp;m3 
  stddev = &amp;amp;sd 
  npergroup =  &amp;amp;ngroup 
  power = .
  alpha=&amp;amp;alpha;
   plot x=n min=1 max=100 npoints=20;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OK so this is telling me that with 34 per group I will get a power of 0.80&lt;/P&gt;
&lt;P&gt;Correct me if I am wrong, but this will only tell you how strong your power is to detect overall difference, and not between group differences.&lt;/P&gt;
&lt;P&gt;I am also interested in taking into account pairwise comparisons when doing the sample size calculation, I can think of two strategies and I dont know if they are adequate:&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp;use&amp;nbsp;&amp;nbsp;Bonferroni correction dropping the alpha to 0.05/ngroup(3)=0.017&lt;/P&gt;
&lt;P&gt;or use contrast but i am not sure if contrasts are right and what /how to use them&lt;/P&gt;
&lt;P&gt;Could anyone please please try o help me out with these questions?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 11:50:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sample-size-calculation-for-three-groups/m-p/458600#M23955</guid>
      <dc:creator>ammarhm</dc:creator>
      <dc:date>2018-04-30T11:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Sample size calculation for three groups</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sample-size-calculation-for-three-groups/m-p/458955#M23956</link>
      <description>&lt;P&gt;Anyone has any&amp;nbsp;suggestions&amp;nbsp;pease?&lt;/P&gt;
&lt;P&gt;All help is appreciated&lt;/P&gt;
&lt;P&gt;Kind regards&lt;/P&gt;
&lt;P&gt;AM&lt;/P&gt;</description>
      <pubDate>Tue, 01 May 2018 12:24:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sample-size-calculation-for-three-groups/m-p/458955#M23956</guid>
      <dc:creator>ammarhm</dc:creator>
      <dc:date>2018-05-01T12:24:27Z</dc:date>
    </item>
  </channel>
</rss>

