<?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: Minimum Detectable Effect Size (MDES) in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Minimum-Detectable-Effect-Size-MDES/m-p/972635#M84036</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19879"&gt;@Quentin&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, that is the error that I am getting. Thank you for sharing it - I will be sure to post in future.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Aug 2025 18:08:08 GMT</pubDate>
    <dc:creator>Adele3</dc:creator>
    <dc:date>2025-08-14T18:08:08Z</dc:date>
    <item>
      <title>Minimum Detectable Effect Size (MDES)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Minimum-Detectable-Effect-Size-MDES/m-p/972628#M84034</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to calculate the minimum detectable effect size of my main exposure variable with 80% power for my multivariable linear regression model using proc power. My model includes 6 predictor variables and a sample size of 500. When I run the below code to obtain the partialcorr (smallest detectable effect size), I am getting an error. Is someone able to provide help with my code? Thank you for your time and consideration!&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc power;
     multreg
     model = random         
     nfullpredictors = 6
     ntestpredictors = 1    
     partialcorr = . 
     ntotal = 500
     power = 0.8
     alpha = 0.05;      
run;&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2025 17:44:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Minimum-Detectable-Effect-Size-MDES/m-p/972628#M84034</guid>
      <dc:creator>Adele3</dc:creator>
      <dc:date>2025-08-14T17:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Minimum Detectable Effect Size (MDES)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Minimum-Detectable-Effect-Size-MDES/m-p/972634#M84035</link>
      <description>&lt;P&gt;When your question is about an error, please post the log including the error message.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is the log I get from running your code.&amp;nbsp; It looks like partialcorr=. is an invalid value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;1    proc power;
2         multreg
3         model = random
4         nfullpredictors = 6
5         ntestpredictors = 1
6         partialcorr = .
                        -
                        22
                        200
ERROR 22-322: Syntax error, expecting one of the following: a numeric constant, a datetime constant.
ERROR 200-322: The symbol is not recognized and will be ignored.
7         ntotal = 500
8         power = 0.8
9         alpha = 0.05;
10   run;

NOTE: The SAS System stopped processing this step because of errors.
&lt;/PRE&gt;
&lt;P&gt;Is that the error you get?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2025 18:04:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Minimum-Detectable-Effect-Size-MDES/m-p/972634#M84035</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2025-08-14T18:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Minimum Detectable Effect Size (MDES)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Minimum-Detectable-Effect-Size-MDES/m-p/972635#M84036</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19879"&gt;@Quentin&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, that is the error that I am getting. Thank you for sharing it - I will be sure to post in future.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2025 18:08:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Minimum-Detectable-Effect-Size-MDES/m-p/972635#M84036</guid>
      <dc:creator>Adele3</dc:creator>
      <dc:date>2025-08-14T18:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Minimum Detectable Effect Size (MDES)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Minimum-Detectable-Effect-Size-MDES/m-p/972640#M84037</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/464202"&gt;@Adele3&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In cases like this you can set NTOTAL to missing, compute the sample size for a suitable range of PARTIALCORR values (using a small step size) and then select the value which returns your planned sample size:&lt;/P&gt;
&lt;PRE&gt;ods select none;
ods output output=want;
proc power;
     multreg
     model = random         
     nfullpredictors = 6
     ntestpredictors = 1    
&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;     partialcorr = 0.1 to 0.2 by 0.0001
     ntotal = .&lt;/STRONG&gt;&lt;/FONT&gt;
     power = 0.8
     alpha = 0.05;      
run; 
ods select all;

proc print data=want;
where abs(ntotal-500)&amp;lt;5;
var power partialcorr ntotal;
format _all_;
run;&lt;/PRE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;PRE&gt;                  Partial
Obs     Power       Corr     NTotal

252    0.80058     0.1251      504
253    0.80042     0.1252      503
254    0.80026     0.1253      502
255    0.80010     0.1254      501
256    0.80073     0.1255      501
257    0.80057     &lt;STRONG&gt;&lt;FONT color="#00DD00"&gt;0.1256      500&lt;/FONT&gt;&lt;/STRONG&gt;
258    0.80040     0.1257      499
259    0.80024     0.1258      498
260    0.80007     0.1259      497
261    0.80070     0.1260      497
262    0.80052     0.1261      496&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2025 19:36:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Minimum-Detectable-Effect-Size-MDES/m-p/972640#M84037</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2025-08-14T19:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Minimum Detectable Effect Size (MDES)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Minimum-Detectable-Effect-Size-MDES/m-p/972647#M84038</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is wonderful, thank you very much for sharing your code! I greatly appreciate you taking the time to provide your help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In follow-up, I have run my multivariable model using PROC GLM with the EFFECTSIZE option to calculate the observed partial correlation for my exposure of interest, by taking the square root of the partial eta-squared for my exposure variable (r = √ 0.0001 = 0.01; output below). Given my observed partial correlation (r = 0.01) is smaller than the a prior partial correlation (r = 0.1256), could this suggest that:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;no meaningful effect exists between my exposure and outcome, or&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;my model lacks sufficient power to detect a subtle true effect, if one exists&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thank you again for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Adele3_0-1755204011235.png" style="width: 246px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/109005i8C4CEA7F8EA61C86/image-dimensions/246x137?v=v2" width="246" height="137" role="button" title="Adele3_0-1755204011235.png" alt="Adele3_0-1755204011235.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2025 20:42:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Minimum-Detectable-Effect-Size-MDES/m-p/972647#M84038</guid>
      <dc:creator>Adele3</dc:creator>
      <dc:date>2025-08-14T20:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Minimum Detectable Effect Size (MDES)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Minimum-Detectable-Effect-Size-MDES/m-p/972649#M84039</link>
      <description>&lt;P&gt;You're welcome.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, you're using PROC POWER not in the planning phase of your study, but rather for a "post-hoc calculation" ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/464202"&gt;@Adele3&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Given my observed partial correlation (r = 0.01) is smaller than the a prior partial correlation (r = 0.1256), could this suggest that:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;no meaningful effect exists between my exposure and outcome, or&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;my model lacks sufficient power to detect a subtle true effect, if one exists&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Possibly, but&amp;nbsp;I can't give a definitive answer&amp;nbsp;off the top of my head. Therefore, I suggest that you start a new thread with this follow-up question in the &lt;A href="https://communities.sas.com/t5/Statistical-Procedures/bd-p/statistical_procedures" target="_blank" rel="noopener"&gt;Statistical Procedures&lt;/A&gt; forum,&amp;nbsp;where it is more likely to get the attention of the linear models experts. (The "SAS Procedures" forum is rather about &lt;EM&gt;Base SAS&lt;/EM&gt; procedures.) You can provide a &lt;A href="https://communities.sas.com/t5/SAS-Procedures/Minimum-Detectable-Effect-Size-MDES/m-p/972647" target="_blank" rel="noopener"&gt;link to the current thread&lt;/A&gt; to show where the "0.1256" comes from.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In parallel, I will take a look into my statistics book collection regarding your question and perhaps run a simulation.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2025 22:47:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Minimum-Detectable-Effect-Size-MDES/m-p/972649#M84039</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2025-08-14T22:47:12Z</dc:date>
    </item>
  </channel>
</rss>

