<?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: Sample size for one-proportion binomial noninferiority test in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Sample-size-for-one-proportion-binomial-noninferiority-test/m-p/940110#M46928</link>
    <description>&lt;P&gt;Thanks. Tried to accept as solution.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Aug 2024 15:20:07 GMT</pubDate>
    <dc:creator>newtriks</dc:creator>
    <dc:date>2024-08-20T15:20:07Z</dc:date>
    <item>
      <title>Sample size for one-proportion binomial noninferiority test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sample-size-for-one-proportion-binomial-noninferiority-test/m-p/939690#M46883</link>
      <description>&lt;P&gt;Running a power analysis on 9.4 to determine sample size. Comparing a new testing method to a "gold standard" test which is correct 100% of the time on a binary, yes/no outcome. Will accept the new method as "noninferior" if it matches the gold standard 90% of the time. One-sided Alpha = .05 with 90% power.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm having difficulty with the coding. I went with what I thought the SAS manual recommended for the above parameters, but it won't give me an N ("ERROR: NTOTAL is not available for TEST=EXACT").&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC POWER;&lt;/P&gt;
&lt;P&gt;ONESAMPLEFREQ&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TEST = EXACT&lt;/P&gt;
&lt;P&gt;METHOD=EXACT&lt;/P&gt;
&lt;P&gt;NULLPROPORTION=.9&lt;/P&gt;
&lt;P&gt;PROPORTION = .8 TO .95 BY .01&lt;/P&gt;
&lt;P&gt;SIDES = U&lt;/P&gt;
&lt;P&gt;POWER = .9&lt;/P&gt;
&lt;P&gt;ALPHA = .05&lt;/P&gt;
&lt;P&gt;NTOTAL = .;&lt;/P&gt;
&lt;P&gt;PLOT X = EFFECT'&lt;/P&gt;
&lt;P&gt;RUN;&lt;/P&gt;
&lt;P&gt;Any help would be appreciated. Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2024 19:10:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sample-size-for-one-proportion-binomial-noninferiority-test/m-p/939690#M46883</guid>
      <dc:creator>newtriks</dc:creator>
      <dc:date>2024-08-16T19:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sample size for one-proportion binomial noninferiority test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sample-size-for-one-proportion-binomial-noninferiority-test/m-p/939693#M46884</link>
      <description>There's a semicolon after PLOT X = EFFECT; - that's not what's causing the issues.&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Aug 2024 19:20:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sample-size-for-one-proportion-binomial-noninferiority-test/m-p/939693#M46884</guid>
      <dc:creator>newtriks</dc:creator>
      <dc:date>2024-08-16T19:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sample size for one-proportion binomial noninferiority test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sample-size-for-one-proportion-binomial-noninferiority-test/m-p/939709#M46887</link>
      <description>&lt;P&gt;When SAS tells you it won't do something, such a NTOTALS for TEST=Exact, then it won't.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But sometimes you can approach the problem from the other side. Provide a range of values for NTOTALS and see what the Power is. Refine the lists for those cases of interest. As an example of a starting point.&lt;/P&gt;
&lt;PRE&gt;PROC POWER;
ONESAMPLEFREQ 
TEST = EXACT
METHOD=EXACT
NULLPROPORTION=.9
PROPORTION = .8 TO .95 BY .01
SIDES = U
POWER = .
ALPHA = .05
NTOTAL =  100 to 1000 by 100;
RUN;&lt;/PRE&gt;
&lt;P&gt;You can see that for proportions under .90 that 1000 is too small.&lt;/P&gt;
&lt;P&gt;You also get notes&lt;/P&gt;
&lt;PRE&gt;WARNING: The effect is in the opposite direction from the alternative hypothesis in one of the
         scenarios in the output table.

&lt;/PRE&gt;
&lt;P&gt;actually more than one of the scenarios. Which means you may to reconsider if all of your combinations of NULLPROPORTION and PROPORTION actually make sense.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Play with values of NTOTALS and see how close you get to the power of .9 you can get. And which scenarios NEVER get there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2024 22:17:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sample-size-for-one-proportion-binomial-noninferiority-test/m-p/939709#M46887</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-08-16T22:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sample size for one-proportion binomial noninferiority test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sample-size-for-one-proportion-binomial-noninferiority-test/m-p/939738#M46892</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2024 13:06:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sample-size-for-one-proportion-binomial-noninferiority-test/m-p/939738#M46892</guid>
      <dc:creator>newtriks</dc:creator>
      <dc:date>2024-08-17T13:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sample size for one-proportion binomial noninferiority test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sample-size-for-one-proportion-binomial-noninferiority-test/m-p/939769#M46903</link>
      <description>&lt;P&gt;Since you are doing one-way&amp;nbsp; noninferiority test,&lt;/P&gt;
&lt;P&gt;You should firstly specify a decent MARGIN value in PROC POWER,&lt;/P&gt;
&lt;P&gt;And adjust parameter proportion= ,margin= ,ntotal= to get rid of these WARNING message.&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
sides = U
proportion = .82 TO .9 BY .01
nullproportion = 0.9
margin = -0.1
ALPHA = .05
ntotal =  100 to 1000 by 100
power = .;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 18 Aug 2024 02:02:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sample-size-for-one-proportion-binomial-noninferiority-test/m-p/939769#M46903</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-08-18T02:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sample size for one-proportion binomial noninferiority test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sample-size-for-one-proportion-binomial-noninferiority-test/m-p/940108#M46927</link>
      <description>&lt;P&gt;Thanks. I tried to accept this as a solution.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 15:17:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sample-size-for-one-proportion-binomial-noninferiority-test/m-p/940108#M46927</guid>
      <dc:creator>newtriks</dc:creator>
      <dc:date>2024-08-20T15:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sample size for one-proportion binomial noninferiority test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sample-size-for-one-proportion-binomial-noninferiority-test/m-p/940110#M46928</link>
      <description>&lt;P&gt;Thanks. Tried to accept as solution.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 15:20:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sample-size-for-one-proportion-binomial-noninferiority-test/m-p/940110#M46928</guid>
      <dc:creator>newtriks</dc:creator>
      <dc:date>2024-08-20T15:20:07Z</dc:date>
    </item>
  </channel>
</rss>

