<?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: Proc Power without Reference MEANDIFF in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Power-without-Reference-MEANDIFF/m-p/691885#M33372</link>
    <description>&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you, that's a really good idea! I didn't think to estimate the mean difference with an 80% power level first, to see what the minimum difference could be!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately SAS won't let me run that code without the STDDEV statement:&lt;/P&gt;&lt;P&gt;ERROR: The STDDEV option is required for TEST=DIFF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you think this is something I should assume as well and estimate a value for it?&lt;/P&gt;</description>
    <pubDate>Thu, 15 Oct 2020 16:20:36 GMT</pubDate>
    <dc:creator>kmardinian</dc:creator>
    <dc:date>2020-10-15T16:20:36Z</dc:date>
    <item>
      <title>Proc Power without Reference MEANDIFF</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Power-without-Reference-MEANDIFF/m-p/691681#M33362</link>
      <description>&lt;DIV class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;Hi, I want to run a power analysis using Proc Power to determine my power for a project.&lt;/P&gt;&lt;P&gt;I have a sample size of 32 and want to know the difference in power if I use randomization ratios of 1:2 or 1:3 (placebo vs. treatment)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is I do not have any reference point for how different my two groups will be, so I can't populate MEANDIFF in the Proc Power statement. So instead I wanted to use standard deviations, if the 2 groups are half a standard deviation apart, 1 standard deviation apart, 0.5 standard deviations apart. Does that seem feasible, or is there a better approach? This below proc power doesn't run because I need GROUPMEANS or MEANDIFF, which I don't have...&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;twosamplemeans test=diff&lt;BR /&gt;groupstddevs = 1| 2&lt;BR /&gt;ntotal = 32&lt;BR /&gt;power = .&lt;BR /&gt;groupweights=(3,1);&lt;BR /&gt;ods output output=output;&lt;BR /&gt;run;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 14 Oct 2020 21:15:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Power-without-Reference-MEANDIFF/m-p/691681#M33362</guid>
      <dc:creator>kmardinian</dc:creator>
      <dc:date>2020-10-14T21:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Power without Reference MEANDIFF</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Power-without-Reference-MEANDIFF/m-p/691809#M33369</link>
      <description>&lt;P&gt;Try running with a variety of MEANDIFF values, and examining the power estimates. If you look at acceptable power levels (say 0.8), then you could see what the detectable difference associated with that power level.&amp;nbsp; Try this code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc power;
twosamplemeans test=diff
groupstddevs = 1| 2
ntotal = 32
meandiff = 0.2 to 2.4 by 0.2
power = .
groupweights=(3,1);
ods output output=output;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 12:48:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Power-without-Reference-MEANDIFF/m-p/691809#M33369</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-10-15T12:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Power without Reference MEANDIFF</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Power-without-Reference-MEANDIFF/m-p/691885#M33372</link>
      <description>&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you, that's a really good idea! I didn't think to estimate the mean difference with an 80% power level first, to see what the minimum difference could be!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately SAS won't let me run that code without the STDDEV statement:&lt;/P&gt;&lt;P&gt;ERROR: The STDDEV option is required for TEST=DIFF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you think this is something I should assume as well and estimate a value for it?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 16:20:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Power-without-Reference-MEANDIFF/m-p/691885#M33372</guid>
      <dc:creator>kmardinian</dc:creator>
      <dc:date>2020-10-15T16:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Power without Reference MEANDIFF</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Power-without-Reference-MEANDIFF/m-p/691893#M33373</link>
      <description>&lt;P&gt;Yes.&amp;nbsp; In fact, my mean diff values can be viewed as K * stddev, if you set stddev=1.&amp;nbsp; The whole idea of doing that is that no matter what the exact value of the standard deviation is, you can calculate the power if the difference to be detected (the meandiff value) is scaled. I hope that makes sense - it took me a while to learn that shortcut.&amp;nbsp; It really comes in handy when you don't have pilot data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 16:45:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Power-without-Reference-MEANDIFF/m-p/691893#M33373</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-10-15T16:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Power without Reference MEANDIFF</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Power-without-Reference-MEANDIFF/m-p/691921#M33378</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate you walking me through this, just a couple more things that I'm still a bit confused about. When you set up your meandiff=0.2 to 2.4 by 0.2, is 0.2 your standard deviation that you are choosing to use in this K*stddev formula?&lt;/P&gt;&lt;PRE class="language-sas"&gt;&lt;CODE&gt;meandiff = 0.2 to 2.4 by 0.2&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I even still need the groupstddevs to show that 2 groups are half a standard deviation apart, 1 standard deviation apart, 0.5 standard deviations apart?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 18:03:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Power-without-Reference-MEANDIFF/m-p/691921#M33378</guid>
      <dc:creator>kmardinian</dc:creator>
      <dc:date>2020-10-15T18:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Power without Reference MEANDIFF</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Power-without-Reference-MEANDIFF/m-p/691932#M33380</link>
      <description>&lt;P&gt;Those would be the K values, with the pooled standard deviation set to 1. I am trying to get this on the basis of a normal(0,1) distribution.&amp;nbsp; Now with unequal standard deviations, this would be trickier.&amp;nbsp; First, you must change to TEST=DIFF_SATT to get unequal variances per group.&amp;nbsp; Then, in the output, you'll see for each value of MEANDIFF a value called actual alpha and a power.&amp;nbsp; The actual alpha is greater than the nominal 0.05 because Satterthwaite's approximation introduces a bias.&amp;nbsp; In this case the mean difference is NOT in terms of one or the other input groupstddev values, but follows the approximation found in the Details section of the PROC POWER documentation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;standard error of the difference = sqrt (sone * sone/none&amp;nbsp; + stwo*stwo/ntwo), where sone is the standard deviation of group one, stwo is the standard deviation of group two, none is the number in group one, and ntwo is the number in group two.&amp;nbsp; For your case, sone=1,none=24, stwo=2, ntwo=8, and standard error of the difference is sqrt(13/24)=0.74.&amp;nbsp; So in this case, the mean differences are 0.2*standard error of the difference up to 2.4*standard error of the difference.&amp;nbsp; You could plug in non-scaled values, if you have them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 18:36:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Power-without-Reference-MEANDIFF/m-p/691932#M33380</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-10-15T18:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Power without Reference MEANDIFF</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Power-without-Reference-MEANDIFF/m-p/692231#M33400</link>
      <description>&lt;P&gt;Thanks Steve for all your help! I was able to get all the necessary information I needed!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 20:44:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Power-without-Reference-MEANDIFF/m-p/692231#M33400</guid>
      <dc:creator>kmardinian</dc:creator>
      <dc:date>2020-10-16T20:44:08Z</dc:date>
    </item>
  </channel>
</rss>

