<?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 performance goal single proportion in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/sample-size-for-performance-goal-single-proportion/m-p/274630#M14488</link>
    <description>&lt;P&gt;Thank you very much! &amp;nbsp;So the rest of the code is set up accurately for the study objective?&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jun 2016 12:17:25 GMT</pubDate>
    <dc:creator>msecic</dc:creator>
    <dc:date>2016-06-02T12:17:25Z</dc:date>
    <item>
      <title>sample size for performance goal single proportion</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/sample-size-for-performance-goal-single-proportion/m-p/274513#M14478</link>
      <description>&lt;P&gt;SAS v9.4. Can I use proc power - onesamplefreq to calculate sample size for a single proportion performance goal hypothesis? I want to show success rate is at least 81%. &amp;nbsp;I expect the sample to show 90% success and want sample size to ensure the lower limit of the one-sided 95% confidence interval is at least 81% (alpha=5%, power=80%). &amp;nbsp;Help! &amp;nbsp;Is this correct?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc power ; &lt;BR /&gt;onesamplefreq&amp;nbsp;&lt;BR /&gt;sides=1&lt;BR /&gt;alpha=0.05&lt;BR /&gt;nullproportion=0.81 /*Performance Goal-PG*/&lt;BR /&gt;proportion= 0.90 &amp;nbsp;/*must be slightly higher then PG*/&lt;BR /&gt;ntotal= .&lt;BR /&gt;power= .8 ;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2016 23:01:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/sample-size-for-performance-goal-single-proportion/m-p/274513#M14478</guid>
      <dc:creator>msecic</dc:creator>
      <dc:date>2016-06-01T23:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: sample size for performance goal single proportion</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/sample-size-for-performance-goal-single-proportion/m-p/274538#M14479</link>
      <description>&lt;P&gt;In my version of SAS (9.4 TS l 1M1) only the normal approximation to the binomial distribution is available.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You must add options&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;method=normal&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;test=adjz&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;to get &lt;EM&gt;ntotal&lt;/EM&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2016 02:57:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/sample-size-for-performance-goal-single-proportion/m-p/274538#M14479</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-06-02T02:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: sample size for performance goal single proportion</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/sample-size-for-performance-goal-single-proportion/m-p/274630#M14488</link>
      <description>&lt;P&gt;Thank you very much! &amp;nbsp;So the rest of the code is set up accurately for the study objective?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2016 12:17:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/sample-size-for-performance-goal-single-proportion/m-p/274630#M14488</guid>
      <dc:creator>msecic</dc:creator>
      <dc:date>2016-06-02T12:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: sample size for performance goal single proportion</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/sample-size-for-performance-goal-single-proportion/m-p/274758#M14496</link>
      <description>&lt;P&gt;I think so!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2016 18:19:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/sample-size-for-performance-goal-single-proportion/m-p/274758#M14496</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-06-02T18:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: sample size for performance goal single proportion</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/sample-size-for-performance-goal-single-proportion/m-p/274759#M14497</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/1922"&gt;@msecic﻿&lt;/a&gt;:&amp;nbsp;I think you should first decide which confidence interval you want to compute. Your code uses the default, which is the exact binomial test, corresponding to the exact Clopper-Pearson confidence interval.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want this, PROC POWER doesn't give you the option to calculate NTOTAL for a given power. I guess the reason is that the results could be easily misinterpreted: Due to discreteness effects, the power does not increase monotonically with sample size (the corresponding graph has a sawtooth shape).&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;But PROC POWER lets you calculate the power for a range of sample sizes:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ntotal= 90 to 120
power= .;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In the results you see that the power of 80% is achieved with n=99 and n=100, but then drops below 80% as n further increases up to n=104 (power 76.1%). Only after another rise and fall it finally crosses the 80% mark for n&amp;gt;=112.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you know the formula for the lower confidence limit of your choice, it's not difficult to compute the power even without PROC POWER.&amp;nbsp;Here's the code using the lower limit of the one-sided Clopper-Pearson CI (replicating the results of PROC POWER):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let alpha=0.05;
%let p0=0.81;
%let p =0.90;

data want;
do n=90 to 120;
  do k=0 to n;
    if k&amp;gt;0 then pL=k/(k+(n-k+1)*quantile('F',1-&amp;amp;alpha,2*(n-k+1),2*k)); else pL=0;
    if pL&amp;gt;=&amp;amp;p0 then leave;
  end;
  power=1-cdf('binom',k-1,&amp;amp;p,n);
  output;
end;
keep n power;
run;

proc print data=want noobs;
format power 5.3;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Jun 2016 18:22:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/sample-size-for-performance-goal-single-proportion/m-p/274759#M14497</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-06-02T18:22:03Z</dc:date>
    </item>
  </channel>
</rss>

