<?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: how to use proc power to calculate power given alpha, hazard ratio and number of events in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-use-proc-power-to-calculate-power-given-alpha-hazard/m-p/925278#M45999</link>
    <description>&lt;P&gt;The STDDEV= option in the COXREG statement is the assumed standard deviation of the predictor being tested---that is, your best guess of the true standard deviation of this predictor's sampling distribution under the same conditions as expected in the study you're planning. This isn't the same as the standard error of a coefficient estimate, just a simple property of the predictor variable itself as it would be sampled (or perhaps taking on values that you control yourself) in your planned study.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd also like to point out that the original question in this thread didn't specify what kind of data analysis is being planned, and it could just as easily pertain to the TWOSAMPLESURVIVAL statement in PROC POWER if you're planning a logrank test rather than a Cox proportional hazards regression. These are two scenarios in which PROC POWER supports the calculation of power for a survival analysis given&amp;nbsp;&lt;SPAN&gt;alpha, hazard ratio, and number of events.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Apr 2024 19:53:30 GMT</pubDate>
    <dc:creator>John_Castelloe</dc:creator>
    <dc:date>2024-04-22T19:53:30Z</dc:date>
    <item>
      <title>how to use proc power to calculate power given alpha, hazard ratio and number of events</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-use-proc-power-to-calculate-power-given-alpha-hazard/m-p/619419#M29834</link>
      <description>&lt;P&gt;In survival analysis, given alpha, hazard ratio and number of events, assuming no Interim Analysis, how to calculate the power?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2020 06:52:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-use-proc-power-to-calculate-power-given-alpha-hazard/m-p/619419#M29834</guid>
      <dc:creator>fengyuwuzu</dc:creator>
      <dc:date>2020-01-23T06:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to use proc power to calculate power given alpha, hazard ratio and number of events</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-use-proc-power-to-calculate-power-given-alpha-hazard/m-p/619506#M29836</link>
      <description>&lt;P&gt;I believe you can use &lt;A href="https://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_power_syntax02.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en" target="_self"&gt;the COXREG statement in PROC POWER&lt;/A&gt; to get the power.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc power;
   coxreg
      alpha = 0.1
      hazardratio = 1.4
      stddev = 1.0
      ntotal = 80 to 120 by 10
      eventprob = 0.8
      power = .
   ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Jan 2020 14:00:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-use-proc-power-to-calculate-power-given-alpha-hazard/m-p/619506#M29836</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-01-23T14:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to use proc power to calculate power given alpha, hazard ratio and number of events</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-use-proc-power-to-calculate-power-given-alpha-hazard/m-p/619556#M29840</link>
      <description>&lt;P&gt;Thank you very much Rick. I will look into it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just did it in R, using the following code&lt;/P&gt;
&lt;PRE id="rstudio_console_output" class="GD15MCFCEUB" style="font-family: monospace, monospace; font-size: 13.3333px; outline: none; border: none; word-break: break-all; margin: 0px; user-select: text; white-space: pre-wrap !important; line-height: 1.2; color: #000000; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: -webkit-left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial;" tabindex="0"&gt;&lt;SPAN&gt;&lt;SPAN class="GD15MCFCKUB ace_keyword" style="color: blue; white-space: pre; user-select: text;"&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN class="GD15MCFCKTB ace_keyword" style="color: blue;"&gt;z&amp;lt;-0.5*sqrt(n)*log(1/hr)-qnorm(1-alpha/2)
&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="GD15MCFCKUB ace_keyword" style="color: blue; white-space: pre; user-select: text;"&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN class="GD15MCFCKTB ace_keyword" style="color: blue;"&gt;power&amp;lt;-pnorm(z)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2020 15:31:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-use-proc-power-to-calculate-power-given-alpha-hazard/m-p/619556#M29840</guid>
      <dc:creator>fengyuwuzu</dc:creator>
      <dc:date>2020-01-23T15:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to use proc power to calculate power given alpha, hazard ratio and number of events</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-use-proc-power-to-calculate-power-given-alpha-hazard/m-p/619820#M29843</link>
      <description>&lt;P&gt;If you want to use an explicit formula, you can run the DATA step or PROC IML to get the same results as R:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Power;
n = 20;
hr=0.3;
alpha=0.05;

z = 0.5*sqrt(n)*log(1/hr)-quantile("Normal", 1-alpha/2);
power = cdf("Normal", z);
run;

proc print; run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Jan 2020 14:10:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-use-proc-power-to-calculate-power-given-alpha-hazard/m-p/619820#M29843</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-01-24T14:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to use proc power to calculate power given alpha, hazard ratio and number of events</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-use-proc-power-to-calculate-power-given-alpha-hazard/m-p/619846#M29846</link>
      <description>&lt;P&gt;Thank you very much Rick for providing code for this option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a question on stddev in proc power with coxreg: how do I decide what number for stddev to use?&amp;nbsp; &lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;stddev &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token number"&gt;1.0&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 15:44:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-use-proc-power-to-calculate-power-given-alpha-hazard/m-p/619846#M29846</guid>
      <dc:creator>fengyuwuzu</dc:creator>
      <dc:date>2020-01-24T15:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to use proc power to calculate power given alpha, hazard ratio and number of events</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-use-proc-power-to-calculate-power-given-alpha-hazard/m-p/619847#M29847</link>
      <description>&lt;P&gt;The parameters in the equation are usually based on pilot studies, previous research, or your best guess.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 15:58:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-use-proc-power-to-calculate-power-given-alpha-hazard/m-p/619847#M29847</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-01-24T15:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to use proc power to calculate power given alpha, hazard ratio and number of events</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-use-proc-power-to-calculate-power-given-alpha-hazard/m-p/834900#M41359</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;A follow-up question to the [proc power]: can it integrate correlation coefficient in multilevel data?&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;Hao&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 18:03:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-use-proc-power-to-calculate-power-given-alpha-hazard/m-p/834900#M41359</guid>
      <dc:creator>haoduonge</dc:creator>
      <dc:date>2022-09-23T18:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to use proc power to calculate power given alpha, hazard ratio and number of events</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-use-proc-power-to-calculate-power-given-alpha-hazard/m-p/925127#M45971</link>
      <description>Hello, Rick. I am not sure about the parameter stddev. Is it the standard error of a coefficient estimate from a PROC PHREG procedure, or something different? Thanks.</description>
      <pubDate>Sun, 21 Apr 2024 06:18:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-use-proc-power-to-calculate-power-given-alpha-hazard/m-p/925127#M45971</guid>
      <dc:creator>TomHsiung</dc:creator>
      <dc:date>2024-04-21T06:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to use proc power to calculate power given alpha, hazard ratio and number of events</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-use-proc-power-to-calculate-power-given-alpha-hazard/m-p/925278#M45999</link>
      <description>&lt;P&gt;The STDDEV= option in the COXREG statement is the assumed standard deviation of the predictor being tested---that is, your best guess of the true standard deviation of this predictor's sampling distribution under the same conditions as expected in the study you're planning. This isn't the same as the standard error of a coefficient estimate, just a simple property of the predictor variable itself as it would be sampled (or perhaps taking on values that you control yourself) in your planned study.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd also like to point out that the original question in this thread didn't specify what kind of data analysis is being planned, and it could just as easily pertain to the TWOSAMPLESURVIVAL statement in PROC POWER if you're planning a logrank test rather than a Cox proportional hazards regression. These are two scenarios in which PROC POWER supports the calculation of power for a survival analysis given&amp;nbsp;&lt;SPAN&gt;alpha, hazard ratio, and number of events.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 19:53:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-use-proc-power-to-calculate-power-given-alpha-hazard/m-p/925278#M45999</guid>
      <dc:creator>John_Castelloe</dc:creator>
      <dc:date>2024-04-22T19:53:30Z</dc:date>
    </item>
  </channel>
</rss>

