<?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: Proc Lifetest - Change Legend Title in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Lifetest-Change-Legend-Title/m-p/101198#M5275</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I do know how to change the template, was hoping there was an easier way. Its good to know it will be updated in a later version.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 May 2012 20:33:56 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2012-05-04T20:33:56Z</dc:date>
    <item>
      <title>Proc Lifetest - Change Legend Title</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Lifetest-Change-Legend-Title/m-p/101194#M5271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to change the legend title in PROC LIFETEST without going into proc template?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems weird that it doesn't pick up the variable label....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ie using the SAS valung dataset from the documentation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;/P&gt;&lt;P&gt;proc lifetest data=VALung plots=(s,ls,lls) outtest=Test maxtime=600;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; time SurvTime*Censor(1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; id Therapy;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; strata Cell;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; label Cell='My Legend Label';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods graphics off;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 16:35:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Lifetest-Change-Legend-Title/m-p/101194#M5271</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-05-02T16:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Lifetest - Change Legend Title</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Lifetest-Change-Legend-Title/m-p/101195#M5272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure why your legend title did not work. When I run your program, the legend title shows up fine in all three graphs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can make immediate changes to your plots by using the ODS Graphics Editor, a point-and-click interface with which you can customize titles, annotatepoints, and make other enhancements. You can enable the creation of editable graphs within a SAS session by submitting one of the following statements: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods listing sge=on;&lt;/P&gt;&lt;P&gt;ods html sge=on;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For details about the tools available in the ODS Graphics Editor, see the SAS ODS Graphics Editor: User’s Guide: &lt;A class="active_link" href="http://support.sas.com/documentation/cdl/en/grstateditug/63427/HTML/default/viewer.htm#p0fa3opdl6xnz9n141b51y6se5yf.htm" title="http://support.sas.com/documentation/cdl/en/grstateditug/63427/HTML/default/viewer.htm#p0fa3opdl6xnz9n141b51y6se5yf.htm"&gt;http://support.sas.com/documentation/cdl/en/grstateditug/63427/HTML/default/viewer.htm#p0fa3opdl6xnz9n141b51y6se5yf.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Funda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 17:14:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Lifetest-Change-Legend-Title/m-p/101195#M5272</guid>
      <dc:creator>Funda_SAS</dc:creator>
      <dc:date>2012-05-03T17:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Lifetest - Change Legend Title</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Lifetest-Change-Legend-Title/m-p/101196#M5273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It gets labeled as Cell not the label specified, ie "My Legend Label" &lt;/P&gt;&lt;P&gt;This happens in SAS 9.2 TS2M3 AND SAS 9.3TS1M0&lt;/P&gt;&lt;P&gt;Was it updated in a later release?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="SurvivalPlot.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/1969_SurvivalPlot.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;70&amp;nbsp;&amp;nbsp; ods graphics on;&lt;/P&gt;&lt;P&gt;71&lt;/P&gt;&lt;P&gt;72&amp;nbsp;&amp;nbsp; proc lifetest data=VALung plots=(s,ls,lls) outtest=Test maxtime=600;&lt;/P&gt;&lt;P&gt;73&lt;/P&gt;&lt;P&gt;74&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; time SurvTime*Censor(1);&lt;/P&gt;&lt;P&gt;75&lt;/P&gt;&lt;P&gt;76&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id Therapy;&lt;/P&gt;&lt;P&gt;77&lt;/P&gt;&lt;P&gt;78&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strata Cell;&lt;/P&gt;&lt;P&gt;79&lt;/P&gt;&lt;P&gt;80&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; label Cell='My Legend Label';&lt;/P&gt;&lt;P&gt;81&lt;/P&gt;&lt;P&gt;82&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: The LOGLOG transform is used to compute the confidence limits for the quartiles of the survivor&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; distribution. To suppress using this transform, specify CONFTYPE=LINEAR in the PROC LIFETEST statement.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.TEST has 0 observations and 3 variables.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE LIFETEST used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12.71 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.14 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;83&lt;/P&gt;&lt;P&gt;84&amp;nbsp;&amp;nbsp; ods graphics off;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 17:25:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Lifetest-Change-Legend-Title/m-p/101196#M5273</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-05-03T17:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Lifetest - Change Legend Title</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Lifetest-Change-Legend-Title/m-p/101197#M5274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"&gt;This is not updated in the latest version of SAS (9.3). I was running a trial version of SAS 12.1, and it works fine there.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"&gt;The easiest way to work-around this is to use SAS Graphics Editor as I explained in the previous post. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"&gt;For more persistent change, I recommend to modify the STRATA variable label in the legend via template modifications. You can easily change the title with a minimal understanding of the graph template language (GTL) as described below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1. Submit ‘ODS TRACE ON;' before you submit your LIFETEST statements. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This displays the template names in the SAS log.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The template name for the survival plot is &lt;EM&gt;Stat.Lifetest.Graphics.ProductLimitSurvival.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. Submit:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"&gt;proc template;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"&gt;source Stat.Lifetest.Graphics.ProductLimitSurvival;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"&gt;This displays the template source code in the SAS log. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3. Copy and paste the source code to your editor.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc template;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM style="font-size: 12pt; font-family: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman';"&gt;paste the source code here&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4. Modify the source code to specify the custom title in the DiscreteLegend statement:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"&gt;DiscreteLegend "Survival"/ title=GROUPNAME location=outside; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"&gt;&amp;gt;&amp;gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DiscreteLegend “Survival”/ title=”custom label goes here” location=outside;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5. Run the updated PROC TEMPLATE, then run PROC LIFETEST.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"&gt;This should update your legend title.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"&gt;Funda&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2012 18:35:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Lifetest-Change-Legend-Title/m-p/101197#M5274</guid>
      <dc:creator>Funda_SAS</dc:creator>
      <dc:date>2012-05-04T18:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Lifetest - Change Legend Title</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Lifetest-Change-Legend-Title/m-p/101198#M5275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I do know how to change the template, was hoping there was an easier way. Its good to know it will be updated in a later version.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2012 20:33:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Lifetest-Change-Legend-Title/m-p/101198#M5275</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-05-04T20:33:56Z</dc:date>
    </item>
  </channel>
</rss>

