<?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: The non-inferiority in power analysis came out with errrors in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/The-non-inferiority-in-power-analysis-came-out-with-errrors/m-p/807510#M39721</link>
    <description>&lt;P&gt;What about the original code that gave you the sample size of 111?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would start with that and try reducing the sample size and see the resulting power.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, &lt;STRONG&gt;warnings&lt;/STRONG&gt; are &lt;STRONG&gt;not errors&lt;/STRONG&gt;. Sometimes the tell you that you may be pushing a particular set of options/parameters just a bit far. Sometimes these warnings are a reminder to double check what you set. You might find that you typed .10 when you intended .01 (for something completely made up and not related to your problem) though I did see an alpha= 0.5 one time instead of 0.05 and the question was why is the sample so small (don't think&amp;nbsp; that was on this forum though)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would take this a time to consider the signs of your diff parameters.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Apr 2022 22:43:12 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2022-04-12T22:43:12Z</dc:date>
    <item>
      <title>The non-inferiority in power analysis came out with errrors</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/The-non-inferiority-in-power-analysis-came-out-with-errrors/m-p/807506#M39720</link>
      <description>&lt;P&gt;I tried to conduct power analysis by using chi-square test, and the sample size for each group is 111 with power of .8 and alpha level of .05. But I think the sample per group is still too large, I want to reduce the sample size a little bit without compromising the power, so I conducted non-inferiority and tried if I can reduce the sample size. I used the below code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc power;
	twosamplefreq test=fm
		nullproportiondiff=-0.15 -0.10
		refproportion=0.45
		proportiondiff=-0.18
		sides = U
		alpha=0.01 0.05
		npergroup=.
		power=0.8;
	run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;However, the outcome is invalid, I am not sure what's going on here. I saw a warning&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;WARNING: The effect is in the opposite direction from the alternative hypothesis in 4 scenarios in the output table.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Could you help me with it? Or is there some other ways to reduce the sample size without reducing the power? Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 22:04:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/The-non-inferiority-in-power-analysis-came-out-with-errrors/m-p/807506#M39720</guid>
      <dc:creator>SAS-questioner</dc:creator>
      <dc:date>2022-04-12T22:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: The non-inferiority in power analysis came out with errrors</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/The-non-inferiority-in-power-analysis-came-out-with-errrors/m-p/807510#M39721</link>
      <description>&lt;P&gt;What about the original code that gave you the sample size of 111?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would start with that and try reducing the sample size and see the resulting power.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, &lt;STRONG&gt;warnings&lt;/STRONG&gt; are &lt;STRONG&gt;not errors&lt;/STRONG&gt;. Sometimes the tell you that you may be pushing a particular set of options/parameters just a bit far. Sometimes these warnings are a reminder to double check what you set. You might find that you typed .10 when you intended .01 (for something completely made up and not related to your problem) though I did see an alpha= 0.5 one time instead of 0.05 and the question was why is the sample so small (don't think&amp;nbsp; that was on this forum though)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would take this a time to consider the signs of your diff parameters.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 22:43:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/The-non-inferiority-in-power-analysis-came-out-with-errrors/m-p/807510#M39721</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-04-12T22:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: The non-inferiority in power analysis came out with errrors</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/The-non-inferiority-in-power-analysis-came-out-with-errrors/m-p/807519#M39722</link>
      <description>&lt;P&gt;You might find the following usage note helpful --&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/48616" target="_blank"&gt;http://support.sas.com/kb/48616&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;So if you wanted an upper-sided test, you might want to specify a positive value for proportiondiff. For example --&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=""&gt;proc power;
	twosamplefreq test=fm
		nullproportiondiff=-0.15 -0.10
		refproportion=0.45
		proportiondiff=0.18
		sides = U
		alpha=0.01 0.05
		npergroup=.
		power=0.8;
	run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you want to have the same power but smaller sample size, then your assumed proportion difference needs to be bigger, or the margin size needs to be bigger. For example, either one of the following programs should give you a smaller sample size --&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=""&gt;proc power;
	twosamplefreq test=fm
		nullproportiondiff=-0.15 -0.10
		refproportion=0.45
		proportiondiff=0.28
		sides = U
		alpha=0.01 0.05
		npergroup=.
		power=0.8;
	run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;H2&gt;or&lt;/H2&gt;
&lt;PRE&gt;&lt;CODE class=""&gt;proc power;
	twosamplefreq test=fm
		nullproportiondiff=-0.25 -0.20
		refproportion=0.45
		proportiondiff=0.18
		sides = U
		alpha=0.01 0.05
		npergroup=.
		power=0.8;
	run;&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Hope this helps,&lt;/P&gt;
&lt;P&gt;Jill&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 00:46:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/The-non-inferiority-in-power-analysis-came-out-with-errrors/m-p/807519#M39722</guid>
      <dc:creator>jiltao</dc:creator>
      <dc:date>2022-04-13T00:46:43Z</dc:date>
    </item>
  </channel>
</rss>

