<?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 Customize a Survival Plot from LIFETEST in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Customize-a-Survival-Plot-from-LIFETEST/m-p/430696#M22634</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm able to generate a nice plot of Product Limit Survival Estimate via PROC LIFETEST, and even capture it in an .rtf file.&amp;nbsp; I'm wondering if there are any ways to customize it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) add titles and footnote&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) remove tabular output that LIFETEST generates from the .rtf file that contains the plot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe the answer is to write the plotting code myself instead of relying on generic LIFETEST output.&amp;nbsp; I tried extracting the time and survival rate data using this statement:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ods output survivalplot=zz; * capture the time and survival rates in a data set **;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I tried a simple GSPLOT line plot and it didn't have that squared-off look that a survival plot usually has.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems like this is a common type of display, so it's frustrating that I can't figure it out.&amp;nbsp; Anybody have any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...dave&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jan 2018 21:56:50 GMT</pubDate>
    <dc:creator>davehalltwp</dc:creator>
    <dc:date>2018-01-24T21:56:50Z</dc:date>
    <item>
      <title>How to Customize a Survival Plot from LIFETEST</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Customize-a-Survival-Plot-from-LIFETEST/m-p/430696#M22634</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm able to generate a nice plot of Product Limit Survival Estimate via PROC LIFETEST, and even capture it in an .rtf file.&amp;nbsp; I'm wondering if there are any ways to customize it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) add titles and footnote&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) remove tabular output that LIFETEST generates from the .rtf file that contains the plot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe the answer is to write the plotting code myself instead of relying on generic LIFETEST output.&amp;nbsp; I tried extracting the time and survival rate data using this statement:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ods output survivalplot=zz; * capture the time and survival rates in a data set **;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I tried a simple GSPLOT line plot and it didn't have that squared-off look that a survival plot usually has.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems like this is a common type of display, so it's frustrating that I can't figure it out.&amp;nbsp; Anybody have any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...dave&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 21:56:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-Customize-a-Survival-Plot-from-LIFETEST/m-p/430696#M22634</guid>
      <dc:creator>davehalltwp</dc:creator>
      <dc:date>2018-01-24T21:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to Customize a Survival Plot from LIFETEST</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Customize-a-Survival-Plot-from-LIFETEST/m-p/430697#M22635</link>
      <description>&lt;P&gt;There's a chapter on that in the documentation with macros to help you modify the templates.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 21:59:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-Customize-a-Survival-Plot-from-LIFETEST/m-p/430697#M22635</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-24T21:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to Customize a Survival Plot from LIFETEST</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Customize-a-Survival-Plot-from-LIFETEST/m-p/430699#M22636</link>
      <description>Hi Reeza,&lt;BR /&gt;&lt;BR /&gt;The chapter would deal with modifying the templates in order to make my plot look more like a typical survival plot?</description>
      <pubDate>Wed, 24 Jan 2018 22:02:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-Customize-a-Survival-Plot-from-LIFETEST/m-p/430699#M22636</guid>
      <dc:creator>davehalltwp</dc:creator>
      <dc:date>2018-01-24T22:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to Customize a Survival Plot from LIFETEST</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Customize-a-Survival-Plot-from-LIFETEST/m-p/430701#M22637</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/175401"&gt;@davehalltwp&lt;/a&gt; wrote:&lt;BR /&gt;Hi Reeza,&lt;BR /&gt;&lt;BR /&gt;The chapter would deal with modifying the templates in order to make my plot look more like a typical survival plot?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I don't know what you mean by typical survival plot, but it does what you asked for in your question, modify titles. Look into it.&lt;/P&gt;
&lt;P&gt;You can control the output to RTF with ODS SELECT/EXCLUDE, so use ODS SELECT &amp;lt;survivalgraph&amp;gt;; to only include the survival graph in your RTF output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 22:06:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-Customize-a-Survival-Plot-from-LIFETEST/m-p/430701#M22637</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-24T22:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to Customize a Survival Plot from LIFETEST</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Customize-a-Survival-Plot-from-LIFETEST/m-p/430730#M22640</link>
      <description>&lt;P&gt;It is not hard to find.&amp;nbsp; Google "customize kaplan meier plot sas"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the first link (at least for me).&lt;/P&gt;
&lt;DIV class="f kv _SWb"&gt;&lt;CITE class="_Rm"&gt;&lt;A href="https://support.sas.com/documentation/onlinedoc/stat/131/kaplan.pdf" target="_blank"&gt;https://support.sas.com/documentation/onlinedoc/stat/131/kaplan.pdf&lt;/A&gt;&lt;/CITE&gt;&lt;/DIV&gt;
&lt;DIV class="f kv _SWb"&gt;
&lt;DIV class="action-menu ab_ctl"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="action-menu ab_ctl"&gt;I wrote this chapter.&amp;nbsp; If there is something you need that is not there, let me know.&amp;nbsp; The chapter is based on years of feedback from customers.&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 25 Jan 2018 00:00:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-Customize-a-Survival-Plot-from-LIFETEST/m-p/430730#M22640</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2018-01-25T00:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to Customize a Survival Plot from LIFETEST</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Customize-a-Survival-Plot-from-LIFETEST/m-p/430769#M22647</link>
      <description>&lt;P&gt;Thanks, Warren.&amp;nbsp; I did read your chapter today, so I'm honored to hear from you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll look at it again tomorrow.&amp;nbsp; It looked like possibly too much for me to digest and use with a quick enough turn around, unfortunately.&amp;nbsp; I might just have to go with the generic output and hope nobody complains.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 04:31:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-Customize-a-Survival-Plot-from-LIFETEST/m-p/430769#M22647</guid>
      <dc:creator>davehalltwp</dc:creator>
      <dc:date>2018-01-25T04:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to Customize a Survival Plot from LIFETEST</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Customize-a-Survival-Plot-from-LIFETEST/m-p/430854#M22649</link>
      <description>&lt;P&gt;There *IS* a lot in the chapter, but much of the chapter contains small, fully-self-contained examples that you copy and use or slightly modify.&amp;nbsp; You can also combine them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you use the macro approach, be sure to note the code at the beginning of that part of the chapter that tells you how to copy the macros from the web and include them.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 11:13:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-Customize-a-Survival-Plot-from-LIFETEST/m-p/430854#M22649</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2018-01-25T11:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to Customize a Survival Plot from LIFETEST</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Customize-a-Survival-Plot-from-LIFETEST/m-p/431166#M22674</link>
      <description>&lt;P&gt;Thanks to both of you for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Warren, your chapter is well-written.&amp;nbsp; I made a copy of the template macros, and was able to call them after setting %LET statements to change aspects of my plot.&amp;nbsp; In other words, it's working for me!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I need to act on Reeza's suggestion for using ODS Select to keep only the plot in my .rtf file.&amp;nbsp; I've never used such a statement.&amp;nbsp; On the other hand, I never did this other stuff either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2018 03:12:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-Customize-a-Survival-Plot-from-LIFETEST/m-p/431166#M22674</guid>
      <dc:creator>davehalltwp</dc:creator>
      <dc:date>2018-01-26T03:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to Customize a Survival Plot from LIFETEST</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Customize-a-Survival-Plot-from-LIFETEST/m-p/431169#M22675</link>
      <description>&lt;P&gt;Add the following before your PROC, that's it &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods select survivalplot;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2018 03:16:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-Customize-a-Survival-Plot-from-LIFETEST/m-p/431169#M22675</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-26T03:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to Customize a Survival Plot from LIFETEST</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Customize-a-Survival-Plot-from-LIFETEST/m-p/431170#M22676</link>
      <description>&lt;P&gt;Glad I could help!&amp;nbsp;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;of course is correct about ODS SELECT and ODS EXCLUDE.&amp;nbsp; See this blog for advanced&amp;nbsp;ways to control the output.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2017/08/14/advanced-ods-controlling-precisely-output-displayed/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2017/08/14/advanced-ods-controlling-precisely-output-displayed/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2018 03:20:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-Customize-a-Survival-Plot-from-LIFETEST/m-p/431170#M22676</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2018-01-26T03:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to Customize a Survival Plot from LIFETEST</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Customize-a-Survival-Plot-from-LIFETEST/m-p/431402#M22687</link>
      <description>&lt;P&gt;My plots look really sharp now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only issue I have is that a heading of "The LIFETEST Procedure" appears just above the plot.&amp;nbsp; I have scoured the chapter and see neither a mention of this string of text nor a mention of getting rid of it.&amp;nbsp; It's the title that appears at the top of standard PROC LIFETEST output.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This time I'll try to figure it out for myself, you all have done enough!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2018 18:57:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-Customize-a-Survival-Plot-from-LIFETEST/m-p/431402#M22687</guid>
      <dc:creator>davehalltwp</dc:creator>
      <dc:date>2018-01-26T18:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to Customize a Survival Plot from LIFETEST</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Customize-a-Survival-Plot-from-LIFETEST/m-p/431403#M22688</link>
      <description>&lt;P&gt;It is not in that chapter because it is a general ODS thing.&amp;nbsp; Specify this statement to get rid of it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods noproctitle;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2018 18:59:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-Customize-a-Survival-Plot-from-LIFETEST/m-p/431403#M22688</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2018-01-26T18:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to Customize a Survival Plot from LIFETEST</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Customize-a-Survival-Plot-from-LIFETEST/m-p/431405#M22689</link>
      <description>Thanks, Warren. I can't believe how much I don't know about SAS after all these years!</description>
      <pubDate>Fri, 26 Jan 2018 19:04:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-Customize-a-Survival-Plot-from-LIFETEST/m-p/431405#M22689</guid>
      <dc:creator>davehalltwp</dc:creator>
      <dc:date>2018-01-26T19:04:02Z</dc:date>
    </item>
  </channel>
</rss>

