<?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 How to calculated the sample size for three groups (or &amp;gt;2 groups) by log-rank test in SAS in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculated-the-sample-size-for-three-groups-or-gt-2/m-p/756456#M36836</link>
    <description>&lt;P&gt;We plan to conduct a study for comparing the survival rate between three&amp;nbsp;different types of surgery for total knee arthroplasty. Thus, the sample size for the study should be estimated.&lt;/P&gt;&lt;P&gt;We could calculate the sample size for two groups by log-rank test in SAS as follow:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let pt=0.65;&lt;BR /&gt;%let pc=0.40;&lt;BR /&gt;%let alpha=0.05;&lt;BR /&gt;%let beta=0.15;&lt;BR /&gt;data aa;&lt;BR /&gt;theta=log10(1-&amp;amp;pt)/log10(1-&amp;amp;pc);&lt;BR /&gt;thetal=round(theta,0.001);&lt;BR /&gt;e=((theta+1)/(theta-1))**2*(probit(1-&amp;amp;alpha/2)+probit(1-&amp;amp;beta))**2;&lt;BR /&gt;el=int(e)+1;&lt;BR /&gt;n=2/(&amp;amp;pt+&amp;amp;pc)*e;&lt;BR /&gt;nl=int(n)+1;&lt;BR /&gt;file print;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, how to calculated&amp;nbsp; the sample size for three groups (or &amp;gt;2 groups) by log-rank test?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Sun, 25 Jul 2021 08:51:37 GMT</pubDate>
    <dc:creator>Dennisky</dc:creator>
    <dc:date>2021-07-25T08:51:37Z</dc:date>
    <item>
      <title>How to calculated the sample size for three groups (or &gt;2 groups) by log-rank test in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculated-the-sample-size-for-three-groups-or-gt-2/m-p/756456#M36836</link>
      <description>&lt;P&gt;We plan to conduct a study for comparing the survival rate between three&amp;nbsp;different types of surgery for total knee arthroplasty. Thus, the sample size for the study should be estimated.&lt;/P&gt;&lt;P&gt;We could calculate the sample size for two groups by log-rank test in SAS as follow:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let pt=0.65;&lt;BR /&gt;%let pc=0.40;&lt;BR /&gt;%let alpha=0.05;&lt;BR /&gt;%let beta=0.15;&lt;BR /&gt;data aa;&lt;BR /&gt;theta=log10(1-&amp;amp;pt)/log10(1-&amp;amp;pc);&lt;BR /&gt;thetal=round(theta,0.001);&lt;BR /&gt;e=((theta+1)/(theta-1))**2*(probit(1-&amp;amp;alpha/2)+probit(1-&amp;amp;beta))**2;&lt;BR /&gt;el=int(e)+1;&lt;BR /&gt;n=2/(&amp;amp;pt+&amp;amp;pc)*e;&lt;BR /&gt;nl=int(n)+1;&lt;BR /&gt;file print;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, how to calculated&amp;nbsp; the sample size for three groups (or &amp;gt;2 groups) by log-rank test?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jul 2021 08:51:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculated-the-sample-size-for-three-groups-or-gt-2/m-p/756456#M36836</guid>
      <dc:creator>Dennisky</dc:creator>
      <dc:date>2021-07-25T08:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculated the sample size for three groups (or &gt;2 groups) by log-rank test in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculated-the-sample-size-for-three-groups-or-gt-2/m-p/757156#M36855</link>
      <description>&lt;P&gt;I suppose it depends on your hypothesis - all three groups are the same, or all three groups are different, or one group is different from the other two...?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following describes running simulations, you might find this helpful:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.lexjansen.com/pharmasug/2004/StatisticsPharmacokinetics/SP08.pdf" target="_blank" rel="noopener"&gt;https://www.lexjansen.com/pharmasug/2004/StatisticsPharmacokinetics/SP08.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also this, especially the example:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://onlinelibrary.wiley.com/doi/pdf/10.1002/sim.4780142010" target="_blank"&gt;https://onlinelibrary.wiley.com/doi/pdf/10.1002/sim.4780142010&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 15:52:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculated-the-sample-size-for-three-groups-or-gt-2/m-p/757156#M36855</guid>
      <dc:creator>Norman21</dc:creator>
      <dc:date>2021-07-27T15:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculated the sample size for three groups (or &gt;2 groups) by log-rank test in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculated-the-sample-size-for-three-groups-or-gt-2/m-p/757981#M36903</link>
      <description>Thank you very much for your generous help!&lt;BR /&gt;Pairwise multiple comparisons test the difference between each pair.&lt;BR /&gt;Could we perform multiple pairwise log-rank tests for three groups (3 pairs) and calculated the sample size for each pair ( we set our significance level α at 0.017（0.05/3=0.017), β=0.2) ) ? Then we choose the group with the largest sample size, which is the sample size required in each group ?&lt;BR /&gt;Thanks!&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Jul 2021 02:20:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculated-the-sample-size-for-three-groups-or-gt-2/m-p/757981#M36903</guid>
      <dc:creator>Dennisky</dc:creator>
      <dc:date>2021-07-29T02:20:42Z</dc:date>
    </item>
  </channel>
</rss>

