<?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: Calculate Sample Size for New Study Based on Prelim Analysis in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Calculate-Sample-Size-for-New-Study-Based-on-Prelim-Analysis/m-p/649533#M31172</link>
    <description>&lt;P&gt;Well, when i pasted in the code, I used your code, rather than the changes I said I was making.&amp;nbsp; It should have been:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ONEWAYANOVA TEST = OVERALL
ALPHA = 0.05
GROUPMEANS = 6955 9368 7705
STDDEV = 1000
NPERGROUP = .
POWER = 0.8;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 May 2020 11:37:58 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2020-05-21T11:37:58Z</dc:date>
    <item>
      <title>Calculate Sample Size for New Study Based on Prelim Analysis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Calculate-Sample-Size-for-New-Study-Based-on-Prelim-Analysis/m-p/649273#M31162</link>
      <description>&lt;P&gt;Hi SAS users!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to calculate the sample size needed for a new analysis using a new data source based on findings from a preliminary analysis using a different dataset.&amp;nbsp; In the prelim analysis, there were 3 groups a control and 2 treatment groups (1 for compliant subjects and 1 for non compliant subjects). The prelim data findings are below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Compliant&lt;/TD&gt;&lt;TD&gt;Non-Compliant&lt;/TD&gt;&lt;TD&gt;Control&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;500&lt;/TD&gt;&lt;TD&gt;300&lt;/TD&gt;&lt;TD&gt;2000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Total Cost&lt;/TD&gt;&lt;TD&gt;$6,955&lt;/TD&gt;&lt;TD&gt;$9,368&lt;/TD&gt;&lt;TD&gt;$7,705&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been trying to use proc power one way anova to calculate the estimated subjects needed for the new analysis but have run into issues- particularly with the standard deviation that I should place there as well as the group means section.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC POWER;&lt;BR /&gt;ONEWAYANOVA TEST = OVERALL&lt;BR /&gt;ALPHA = 0.05&lt;BR /&gt;GROUPMEANS = 500| 300 |2000&lt;BR /&gt;STDDEV = 1.0&lt;BR /&gt;NPERGROUP = .&lt;BR /&gt;POWER = 0.8;&lt;BR /&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 16:07:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Calculate-Sample-Size-for-New-Study-Based-on-Prelim-Analysis/m-p/649273#M31162</guid>
      <dc:creator>mekono</dc:creator>
      <dc:date>2020-05-20T16:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Sample Size for New Study Based on Prelim Analysis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Calculate-Sample-Size-for-New-Study-Based-on-Prelim-Analysis/m-p/649319#M31165</link>
      <description>&lt;P&gt;To use PROC POWER you must have an estimate of the variability around the means.&amp;nbsp; I assume the means are the dollar amounts presented.&amp;nbsp; The estimate of variability may be the same across all groups, or different by group.&amp;nbsp; I am going to do a PROC POWER with a constant standard deviation of $1000, and the means you present:&amp;nbsp; I used this code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC POWER;
ONEWAYANOVA TEST = OVERALL
ALPHA = 0.05
GROUPMEANS = 500| 300 |2000
STDDEV = 1.0
NPERGROUP = .
POWER = 0.8;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And obtained this result:&lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Power: Output" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="c b header" colspan="2" scope="colgroup"&gt;Computed N per&lt;BR /&gt;Group&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r b header" scope="col"&gt;Actual Power&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;N per Group&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="r data"&gt;0.875&lt;/TD&gt;
&lt;TD class="r data"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This says 5 patients per group with these group means and a common standard deviation of 1000 would have an 87.5% chance of providing an F test significant at the 0.05 level.&amp;nbsp; Now I suspect that the other row of numbers are some other type of average, and that is what you want to compare.&amp;nbsp; To get an estimate, you &lt;FONT color="#FF00FF"&gt;&lt;STRONG&gt;MUST&amp;nbsp;&lt;/STRONG&gt;&lt;FONT color="#000000"&gt;have some estimate of the variability in those numbers.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF00FF"&gt;&lt;FONT color="#000000"&gt;SteveDenham&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 20 May 2020 18:11:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Calculate-Sample-Size-for-New-Study-Based-on-Prelim-Analysis/m-p/649319#M31165</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-05-20T18:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Sample Size for New Study Based on Prelim Analysis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Calculate-Sample-Size-for-New-Study-Based-on-Prelim-Analysis/m-p/649327#M31166</link>
      <description>&lt;P&gt;Thank you Steve! I have calculated the standard deviation among&amp;nbsp; the average total cost values across the 3 groups (1992) and inserting that into the code increases the N needed per group to 24.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Two questions-&lt;/P&gt;&lt;P&gt;&amp;nbsp;In the new dataset, I'm expecting there to be over a thousand claims in each group, so finding that I need only 24 or more cases is helpful but doesn't specify how many hundred or thousands of cases I need. Is there something I can do to narrow down the specific number needed? or would you suggest testing the power after I've identified the volumes in the new dataset?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is the large value of the SD causing the volume of N needed per group to be lower?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 18:27:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Calculate-Sample-Size-for-New-Study-Based-on-Prelim-Analysis/m-p/649327#M31166</guid>
      <dc:creator>mekono</dc:creator>
      <dc:date>2020-05-20T18:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Sample Size for New Study Based on Prelim Analysis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Calculate-Sample-Size-for-New-Study-Based-on-Prelim-Analysis/m-p/649533#M31172</link>
      <description>&lt;P&gt;Well, when i pasted in the code, I used your code, rather than the changes I said I was making.&amp;nbsp; It should have been:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ONEWAYANOVA TEST = OVERALL
ALPHA = 0.05
GROUPMEANS = 6955 9368 7705
STDDEV = 1000
NPERGROUP = .
POWER = 0.8;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 11:37:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Calculate-Sample-Size-for-New-Study-Based-on-Prelim-Analysis/m-p/649533#M31172</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-05-21T11:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Sample Size for New Study Based on Prelim Analysis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Calculate-Sample-Size-for-New-Study-Based-on-Prelim-Analysis/m-p/649534#M31173</link>
      <description>&lt;P&gt;I will start from the bottom up.&amp;nbsp; Larger SD's mean that a &lt;U&gt;bigger&lt;/U&gt; sample size will be needed to detect a statistically significant difference.&amp;nbsp; As an example, when I used 1000 as an SD, I got an N of 5 per group&amp;nbsp; When you essentially doubled the SD to 1996, you got an N of 24 per group.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now on to the other question.&amp;nbsp; Frankly, the way you state this confuses me.&amp;nbsp; If you need 24 per group to show a difference, and you have thousands, then there should be little concern that your conclusions may be due to a unusual sample.&amp;nbsp; Post data collection but pre-analysis calculation of power can provide peace of mind that you need not go out and get more data.&amp;nbsp; Just for fun, let's assume the means and standard deviations are unchanged from your calculation, but we turn this around to calculate the power with 1000 cases per group. I get &amp;gt;0.999.&amp;nbsp; How can you use this information?&amp;nbsp; Well, if there is a fixed cost for collecting each case, you would save (3000 - 72) * (fixed cost) dollars by just using the first 24 cases that are collected in each group.&amp;nbsp; Even if the cost were a dollar per case, that is a saving of over 2900 dollars.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 11:42:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Calculate-Sample-Size-for-New-Study-Based-on-Prelim-Analysis/m-p/649534#M31173</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-05-21T11:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Sample Size for New Study Based on Prelim Analysis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Calculate-Sample-Size-for-New-Study-Based-on-Prelim-Analysis/m-p/649564#M31174</link>
      <description>Thanks, your explanation makes perfect sense!</description>
      <pubDate>Thu, 21 May 2020 13:46:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Calculate-Sample-Size-for-New-Study-Based-on-Prelim-Analysis/m-p/649564#M31174</guid>
      <dc:creator>mekono</dc:creator>
      <dc:date>2020-05-21T13:46:33Z</dc:date>
    </item>
  </channel>
</rss>

