<?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: Progression free survival calculation by months using PROC LIFETEST in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Progression-free-survival-calculation-by-months-using-PROC/m-p/900117#M355745</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*
That warning said you need OPEN " ODS graphics " by ods graphics; 
And use ODS OUTPUT to save this graph into a dataset.
*/

ods graphics; 
ods output  SurvivalPlot= SurvivalPlot;  /* &amp;lt;-- Here is */
PROC LIFETEST data = sashelp.bmt  METHOD = km CONFTYPE=LOGLOG  plots=survival(atrisk= 0 to 2500 by 500);
	TIME t * Status(0) ;
	STRATA Group;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1698320163191.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/89107iC423A8F90192148B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1698320163191.png" alt="Ksharp_0-1698320163191.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Oct 2023 11:36:05 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2023-10-26T11:36:05Z</dc:date>
    <item>
      <title>Progression free survival calculation by months using PROC LIFETEST</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Progression-free-survival-calculation-by-months-using-PROC/m-p/899920#M355657</link>
      <description>&lt;P&gt;I have this section of a table which compares 2 drugs&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="smackerz1988_0-1698232232899.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/89072iC8D251E852EACF59/image-size/medium?v=v2&amp;amp;px=400" role="button" title="smackerz1988_0-1698232232899.png" alt="smackerz1988_0-1698232232899.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and this piece of of code (AvalM is Aval transformed to months using this code&amp;nbsp;avalM = aval / 365.25 * 12;)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods results off;
ods output CensoredSummary=stat00 Quartiles=med00 homtests= logrank00;
PROC LIFETEST data = adtte00 METHOD = km CONFTYPE=LOGLOG plots=survival(atrisk=3 6 9 12 18 24) ;
TIME avalM * CNSR(1) ;
STRATA trtp;
by &amp;amp;Subgrp;
RUN;
ods results on;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now I know there is an option in PROC LIFETEST for plots such as&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;plots=survival(atrisk= 0 to 2500 by 500)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Can something similar be done here just to get the results for each month specified and can the by statement be adjusted as&amp;nbsp;the pattern is 3,6,9,12,18,24 so the first 4 are every 3 months but the rest are every 6 months. Any help would be greatly appreciated.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input  SUBJID $ AVALM 8. CNSR; 
infile datalines dlm = '|';
datalines;
1001|0.0328542094|0
1002|4.205338809 |1
1003|0.0328542094|0
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 12:09:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Progression-free-survival-calculation-by-months-using-PROC/m-p/899920#M355657</guid>
      <dc:creator>smackerz1988</dc:creator>
      <dc:date>2023-10-25T12:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Progression free survival calculation by months using PROC LIFETEST</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Progression-free-survival-calculation-by-months-using-PROC/m-p/899931#M355659</link>
      <description>&lt;P&gt;Can not list these months in PLOT ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC LIFETEST data = adtte00  METHOD = km CONFTYPE=LOGLOG  plots=survival(atrisk=3 6 9 12 18 24) ;
	TIME t * Status(0) ;
	STRATA Group;
	RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Oct 2023 11:47:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Progression-free-survival-calculation-by-months-using-PROC/m-p/899931#M355659</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-10-25T11:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Progression free survival calculation by months using PROC LIFETEST</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Progression-free-survival-calculation-by-months-using-PROC/m-p/899932#M355660</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;I get the warning and log notes below. Is there a way to just get the results in a data set as opposed to using ODS graphics or would this require additional steps?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"WARNING: ODS graphics must be enabled to obtain the full features of the PLOTS= option.&lt;/P&gt;
&lt;P&gt;NOTE: 28503 bytes written to &lt;BR /&gt;/saswork/SAS_work8ED3000050D2_dsprgn05.ds-grid.com/SAS_workE693000050D2_dsprgn05.ds-grid.com/lifetest1.png.&lt;BR /&gt;NOTE: PROCEDURE LIFETEST used (Total process time):&lt;BR /&gt;real time 0.79 seconds&lt;BR /&gt;cpu time 0.74 seconds&lt;BR /&gt;&lt;BR /&gt;NOTE: The above message was for the following BY group:&lt;BR /&gt;Full Analysis Set Population Flag=Y"&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 11:55:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Progression-free-survival-calculation-by-months-using-PROC/m-p/899932#M355660</guid>
      <dc:creator>smackerz1988</dc:creator>
      <dc:date>2023-10-25T11:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Progression free survival calculation by months using PROC LIFETEST</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Progression-free-survival-calculation-by-months-using-PROC/m-p/900117#M355745</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*
That warning said you need OPEN " ODS graphics " by ods graphics; 
And use ODS OUTPUT to save this graph into a dataset.
*/

ods graphics; 
ods output  SurvivalPlot= SurvivalPlot;  /* &amp;lt;-- Here is */
PROC LIFETEST data = sashelp.bmt  METHOD = km CONFTYPE=LOGLOG  plots=survival(atrisk= 0 to 2500 by 500);
	TIME t * Status(0) ;
	STRATA Group;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1698320163191.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/89107iC423A8F90192148B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1698320163191.png" alt="Ksharp_0-1698320163191.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 11:36:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Progression-free-survival-calculation-by-months-using-PROC/m-p/900117#M355745</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-10-26T11:36:05Z</dc:date>
    </item>
  </channel>
</rss>

