<?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 proc power compute sample size for survival curves in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-power-compute-sample-size-for-survival-curves/m-p/678306#M32583</link>
    <description>&lt;P&gt;I am trying to perform a sample size calculation in SAS for a two sample time to event case.&lt;/P&gt;&lt;P&gt;Here is the situation:&lt;/P&gt;&lt;P&gt;1. Assume both sample follows exponential distribution&lt;BR /&gt;2. Assume a given constant hazard ratio under alternative hypothesis, we call hr (group 2 vs group 1)&lt;BR /&gt;3. We will use logrank test.&lt;BR /&gt;4. Given accrual time a, and follow up time f&lt;BR /&gt;5. Also given the exponential hazard for group 1, called it exph1&lt;BR /&gt;6. Assume the sample size ratio between the two group is 1:1&lt;BR /&gt;7. required nominal power is p&lt;/P&gt;&lt;P&gt;Now my code looks like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc power;
twosamplesurvival test=logrank
accrualtime = a
followuptime = f
refsurvexphazard= exph1
hazardratio = hr
power = p
/* eventstotal = . /*events total */
/* ntotal= . /*total sample size */
; 
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;you can uncomment either eventstotal = . or ntotal=. depending on whether you want to compute the requested number of events, or the actual total sample size.&lt;/P&gt;&lt;P&gt;They should not be the same consider by the end of follow up, if the event does not happen, then the subject will be right censored.&lt;/P&gt;&lt;P&gt;However I am always getting the same number for events total and total sample size. What did I do wrong here?&lt;/P&gt;&lt;P&gt;I actually know how to compute this by hand, and my hand calculation for requested event number is very close to SAS output (SAS gives a slightly larger value but very close), however my total sample size is much larger than the event number.&lt;/P&gt;&lt;P&gt;I could not disclose any particular initial value for the parameters above due to confidential reasons. Could someone help? Would really appreciate that.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Aug 2020 02:57:12 GMT</pubDate>
    <dc:creator>guanlinchang</dc:creator>
    <dc:date>2020-08-21T02:57:12Z</dc:date>
    <item>
      <title>proc power compute sample size for survival curves</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-power-compute-sample-size-for-survival-curves/m-p/678306#M32583</link>
      <description>&lt;P&gt;I am trying to perform a sample size calculation in SAS for a two sample time to event case.&lt;/P&gt;&lt;P&gt;Here is the situation:&lt;/P&gt;&lt;P&gt;1. Assume both sample follows exponential distribution&lt;BR /&gt;2. Assume a given constant hazard ratio under alternative hypothesis, we call hr (group 2 vs group 1)&lt;BR /&gt;3. We will use logrank test.&lt;BR /&gt;4. Given accrual time a, and follow up time f&lt;BR /&gt;5. Also given the exponential hazard for group 1, called it exph1&lt;BR /&gt;6. Assume the sample size ratio between the two group is 1:1&lt;BR /&gt;7. required nominal power is p&lt;/P&gt;&lt;P&gt;Now my code looks like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc power;
twosamplesurvival test=logrank
accrualtime = a
followuptime = f
refsurvexphazard= exph1
hazardratio = hr
power = p
/* eventstotal = . /*events total */
/* ntotal= . /*total sample size */
; 
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;you can uncomment either eventstotal = . or ntotal=. depending on whether you want to compute the requested number of events, or the actual total sample size.&lt;/P&gt;&lt;P&gt;They should not be the same consider by the end of follow up, if the event does not happen, then the subject will be right censored.&lt;/P&gt;&lt;P&gt;However I am always getting the same number for events total and total sample size. What did I do wrong here?&lt;/P&gt;&lt;P&gt;I actually know how to compute this by hand, and my hand calculation for requested event number is very close to SAS output (SAS gives a slightly larger value but very close), however my total sample size is much larger than the event number.&lt;/P&gt;&lt;P&gt;I could not disclose any particular initial value for the parameters above due to confidential reasons. Could someone help? Would really appreciate that.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 02:57:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-power-compute-sample-size-for-survival-curves/m-p/678306#M32583</guid>
      <dc:creator>guanlinchang</dc:creator>
      <dc:date>2020-08-21T02:57:12Z</dc:date>
    </item>
  </channel>
</rss>

