<?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: Help with coding to calculating total # of events required for time-dependent (survival) data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Help-with-coding-to-calculating-total-of-events-required-for/m-p/783989#M250102</link>
    <description>Ok, here's the new code I typed, using the formulas given to me (D is "number of events", and n is "sample size"):&lt;BR /&gt;&lt;BR /&gt;data fep6; set fep6;&lt;BR /&gt;Num_events=(4*(1.96+1.282)**2)/log(2)**2;&lt;BR /&gt;sample_size= Num_events/(1-0.30);&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;It's not showing me the answer in my output, how do I fix that?</description>
    <pubDate>Fri, 03 Dec 2021 18:47:43 GMT</pubDate>
    <dc:creator>sascrazedpupil</dc:creator>
    <dc:date>2021-12-03T18:47:43Z</dc:date>
    <item>
      <title>Help with coding to calculating total # of events required for time-dependent (survival) data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-coding-to-calculating-total-of-events-required-for/m-p/783750#M249994</link>
      <description>&lt;P&gt;Hello, I attempted this problem in SAS Studio, and am not sure if I input the correct code for it. I'd greatly appreciate any help!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;SPAN&gt;"For determining sample size estimates for time dependent (survival) data, usually the number of estimated events (D) (e.g. deaths, rejections, relapse, reops, etc.) must first be calculated. Once that is established, the total sample size (n) may be derived based on the percentage of patients that remain event-free at the end of the study."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The two equations for &lt;EM&gt;D&lt;/EM&gt; and &lt;EM&gt;n&lt;/EM&gt; are found below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;These equations are for the (Parametric) version of sample size determination for Survival Data or Time to Failure data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;D = total # of events required&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;α &lt;/SPAN&gt;&lt;SPAN&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;Z critical value - Type I error&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Β &lt;/SPAN&gt;&lt;SPAN&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;Z critical value - Type II error&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Δ&lt;/SPAN&gt;&lt;SPAN&gt;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;hazardratio =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;λ&lt;/SPAN&gt;&lt;SPAN&gt;Τ&lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;λ&lt;/SPAN&gt;&lt;SPAN&gt;c&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;ln&lt;/SPAN&gt;&lt;SPAN&gt;π&lt;/SPAN&gt;&lt;SPAN&gt;T&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;/ ln&lt;/SPAN&gt;&lt;SPAN&gt;π&lt;/SPAN&gt;&lt;SPAN&gt;C&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;n=D/(1-%event-free)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;SPAN&gt;Example: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;90% Power&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Δ &lt;/SPAN&gt;&lt;SPAN&gt;= 2.0 &lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;SPAN&gt;D=4(1.96 + 1.282)^&lt;/SPAN&gt;&lt;SPAN&gt;2/[ln2]^2&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;= 87.5 = 88events&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This assumes that all participants will be followed until their event.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Suppose that previous studies suggest that 30% of subjects remain event-free at the end of trial. Then, sample size n =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;D = 88 / (1-0.30) = 125.7 = &lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;126 &lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;1 - %event-free&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This number might be further inflated to account for dropout, but we won’t worry about that here.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;In SAS write code to calculate &lt;EM&gt;D&lt;/EM&gt; and &lt;EM&gt;n&lt;/EM&gt; for the following scenarios: &lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When alpha = 0.05 and the hazard ratio may be either 2.0 or 1.5, for power = 0.8 and also for power = 0.90. And either 30% or 20% of subjects remain event-free at the end of trial.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Do you see that you will have &lt;/SPAN&gt;&lt;SPAN&gt;8 pair of estimates &lt;/SPAN&gt;&lt;SPAN&gt;for D and n in your output? Please include your &lt;/SPAN&gt;&lt;SPAN&gt;SAS &lt;/SPAN&gt;&lt;SPAN&gt;code. Your estimate for &lt;EM&gt;D&lt;/EM&gt; and &lt;EM&gt;n&lt;/EM&gt; should be in integer form.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;SPAN&gt;Note:&lt;BR /&gt;Power&amp;nbsp; &amp;nbsp;Z&lt;/SPAN&gt;&lt;SPAN&gt;B &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;80%&amp;nbsp; &amp;nbsp; &amp;nbsp; 0.84 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;90%&amp;nbsp; &amp;nbsp; &amp;nbsp; 1.28&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is my code:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;proc power;&lt;BR /&gt;twosamplefreq test=fisher&lt;BR /&gt;groupproportions= (0.30 0.20)&lt;BR /&gt;npergroup=.&lt;BR /&gt;power=0.90;&lt;BR /&gt;run;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 02 Dec 2021 19:11:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-coding-to-calculating-total-of-events-required-for/m-p/783750#M249994</guid>
      <dc:creator>sascrazedpupil</dc:creator>
      <dc:date>2021-12-02T19:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help with coding to calculating total # of events required for time-dependent (survival) data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-coding-to-calculating-total-of-events-required-for/m-p/783770#M249999</link>
      <description>&lt;P&gt;Since the data is survival data, I don't think twosamplefreq is appropriate, Twosamplesurvival is likely more appropriate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2020/4908-2020.pdf" target="_blank"&gt;https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2020/4908-2020.pdf&lt;/A&gt;&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/408521"&gt;@sascrazedpupil&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello, I attempted this problem in SAS Studio, and am not sure if I input the correct code for it. I'd greatly appreciate any help!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Problem:&lt;/P&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;P&gt;&lt;SPAN&gt;"For determining sample size estimates for time dependent (survival) data, usually the number of estimated events (D) (e.g. deaths, rejections, relapse, reops, etc.) must first be calculated. Once that is established, the total sample size (n) may be derived based on the percentage of patients that remain event-free at the end of the study."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The two equations for &lt;EM&gt;D&lt;/EM&gt; and &lt;EM&gt;n&lt;/EM&gt; are found below:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;These equations are for the (Parametric) version of sample size determination for Survival Data or Time to Failure data.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;D = total # of events required&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;α &lt;/SPAN&gt;&lt;SPAN&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;Z critical value - Type I error&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Β &lt;/SPAN&gt;&lt;SPAN&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;Z critical value - Type II error&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Δ&lt;/SPAN&gt;&lt;SPAN&gt;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;hazardratio =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;λ&lt;/SPAN&gt;&lt;SPAN&gt;Τ&lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;λ&lt;/SPAN&gt;&lt;SPAN&gt;c&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;ln&lt;/SPAN&gt;&lt;SPAN&gt;π&lt;/SPAN&gt;&lt;SPAN&gt;T&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;/ ln&lt;/SPAN&gt;&lt;SPAN&gt;π&lt;/SPAN&gt;&lt;SPAN&gt;C&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;n=D/(1-%event-free)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;P&gt;&lt;SPAN&gt;Example: &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;90% Power&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Δ &lt;/SPAN&gt;&lt;SPAN&gt;= 2.0 &lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;P&gt;&lt;SPAN&gt;D=4(1.96 + 1.282)^&lt;/SPAN&gt;&lt;SPAN&gt;2/[ln2]^2&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;= 87.5 = 88events&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This assumes that all participants will be followed until their event.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Suppose that previous studies suggest that 30% of subjects remain event-free at the end of trial. Then, sample size n =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;D = 88 / (1-0.30) = 125.7 = &lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;126 &lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;1 - %event-free&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This number might be further inflated to account for dropout, but we won’t worry about that here.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;In SAS write code to calculate &lt;EM&gt;D&lt;/EM&gt; and &lt;EM&gt;n&lt;/EM&gt; for the following scenarios: &lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;When alpha = 0.05 and the hazard ratio may be either 2.0 or 1.5, for power = 0.8 and also for power = 0.90. And either 30% or 20% of subjects remain event-free at the end of trial.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Do you see that you will have &lt;/SPAN&gt;&lt;SPAN&gt;8 pair of estimates &lt;/SPAN&gt;&lt;SPAN&gt;for D and n in your output? Please include your &lt;/SPAN&gt;&lt;SPAN&gt;SAS &lt;/SPAN&gt;&lt;SPAN&gt;code. Your estimate for &lt;EM&gt;D&lt;/EM&gt; and &lt;EM&gt;n&lt;/EM&gt; should be in integer form.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;P&gt;&lt;SPAN&gt;Note:&lt;BR /&gt;Power&amp;nbsp; &amp;nbsp;Z&lt;/SPAN&gt;&lt;SPAN&gt;B &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;80%&amp;nbsp; &amp;nbsp; &amp;nbsp; 0.84 &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;90%&amp;nbsp; &amp;nbsp; &amp;nbsp; 1.28&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here is my code:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;proc power;&lt;BR /&gt;twosamplefreq test=fisher&lt;BR /&gt;groupproportions= (0.30 0.20)&lt;BR /&gt;npergroup=.&lt;BR /&gt;power=0.90;&lt;BR /&gt;run;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 20:31:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-coding-to-calculating-total-of-events-required-for/m-p/783770#M249999</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-12-02T20:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help with coding to calculating total # of events required for time-dependent (survival) data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-coding-to-calculating-total-of-events-required-for/m-p/783980#M250097</link>
      <description>Ok, thank you. I checked with my TA, and she said I only have to write SAS code for the formulas specified in the problem. How do I do that?</description>
      <pubDate>Fri, 03 Dec 2021 18:07:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-coding-to-calculating-total-of-events-required-for/m-p/783980#M250097</guid>
      <dc:creator>sascrazedpupil</dc:creator>
      <dc:date>2021-12-03T18:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help with coding to calculating total # of events required for time-dependent (survival) data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-coding-to-calculating-total-of-events-required-for/m-p/783983#M250100</link>
      <description>I think you can use  the formula for D and n with the information in the question.&lt;BR /&gt;&lt;BR /&gt;FYI - a good way to answer these questions is to list the information you have in the question (alpha = 0.5, power=2/1.5 etc), figure out what you need to get to (D/n) &lt;BR /&gt;and then if you have the formula's it becomes plug and play. I see the formula for N but not D in your posts. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Dec 2021 18:20:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-coding-to-calculating-total-of-events-required-for/m-p/783983#M250100</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-12-03T18:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help with coding to calculating total # of events required for time-dependent (survival) data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-coding-to-calculating-total-of-events-required-for/m-p/783989#M250102</link>
      <description>Ok, here's the new code I typed, using the formulas given to me (D is "number of events", and n is "sample size"):&lt;BR /&gt;&lt;BR /&gt;data fep6; set fep6;&lt;BR /&gt;Num_events=(4*(1.96+1.282)**2)/log(2)**2;&lt;BR /&gt;sample_size= Num_events/(1-0.30);&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;It's not showing me the answer in my output, how do I fix that?</description>
      <pubDate>Fri, 03 Dec 2021 18:47:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-coding-to-calculating-total-of-events-required-for/m-p/783989#M250102</guid>
      <dc:creator>sascrazedpupil</dc:creator>
      <dc:date>2021-12-03T18:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Help with coding to calculating total # of events required for time-dependent (survival) data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-coding-to-calculating-total-of-events-required-for/m-p/783990#M250103</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/408521"&gt;@sascrazedpupil&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;BR /&gt;data fep6; set fep6;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Do not code like this, give it a new data set name such as fep7.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data fep7; 
set fep6;
Num_events=(4*(1.96+1.282)**2)/log(2)**2;
sample_size= Num_events/(1-0.30);
run;

proc print data=fep7;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2021 18:51:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-coding-to-calculating-total-of-events-required-for/m-p/783990#M250103</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-12-03T18:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help with coding to calculating total # of events required for time-dependent (survival) data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-coding-to-calculating-total-of-events-required-for/m-p/783992#M250104</link>
      <description>Thank you! Do I need to have observations for it to give me a numeric Output (Under "Notes" in my Log, it says "No observations read from the data set WORK.FEP6.", since I'm not using any datasets with values, but instead just writing SAS code for the formulas specified in the assignment.</description>
      <pubDate>Fri, 03 Dec 2021 19:05:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-coding-to-calculating-total-of-events-required-for/m-p/783992#M250104</guid>
      <dc:creator>sascrazedpupil</dc:creator>
      <dc:date>2021-12-03T19:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help with coding to calculating total # of events required for time-dependent (survival) data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-coding-to-calculating-total-of-events-required-for/m-p/783994#M250105</link>
      <description>Then remove the SET statement. &lt;BR /&gt;SET provides the input data, where there is none in this case it seems.</description>
      <pubDate>Fri, 03 Dec 2021 19:10:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-coding-to-calculating-total-of-events-required-for/m-p/783994#M250105</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-12-03T19:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help with coding to calculating total # of events required for time-dependent (survival) data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-coding-to-calculating-total-of-events-required-for/m-p/783995#M250106</link>
      <description>Thank you, it worked! You are a lifesaver.</description>
      <pubDate>Fri, 03 Dec 2021 19:11:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-coding-to-calculating-total-of-events-required-for/m-p/783995#M250106</guid>
      <dc:creator>sascrazedpupil</dc:creator>
      <dc:date>2021-12-03T19:11:57Z</dc:date>
    </item>
  </channel>
</rss>

