<?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: How do i change the Y axis  on proc lifetest to percents? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-do-i-change-the-Y-axis-on-proc-lifetest-to-percents/m-p/530946#M17726</link>
    <description>&lt;P&gt;I am having the same problem as the original poster, but I cannot get the&amp;nbsp;&lt;SPAN&gt;TICKVALUEFORMAT&amp;nbsp;option to work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want the y-axis of a KM survival curve to display percentages from 0 to 100%, in intervals of 10%.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am not using gplot graph to make the graph, I am using proc lifetest.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am using the following modifications to the&amp;nbsp;%ProvideSurvivalMacros template:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%ProvideSurvivalMacros&lt;BR /&gt;%let yOptions = label="Survival (%)"&lt;BR /&gt;linearopts=(viewmin=0 viewmax=1&lt;BR /&gt;tickvaluelist=(0 .1 .2 .3 .4 .5 .6 .7 .8 .9 1)&lt;BR /&gt;tickvalueformat &lt;STRONG&gt;???&lt;/STRONG&gt; );&lt;BR /&gt;%CompileSurvivalTemplates&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc lifetest data=mydata plots=survival(atrisk test nocensor outside);&lt;BR /&gt;time days * event(0);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don't know what to put in place of "&lt;STRONG&gt;???&lt;/STRONG&gt;" after tickvalueformat to make it work&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any ideas??&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Jan 2019 13:24:23 GMT</pubDate>
    <dc:creator>ghbg</dc:creator>
    <dc:date>2019-01-29T13:24:23Z</dc:date>
    <item>
      <title>How do i change the Y axis  on proc lifetest to percents?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-i-change-the-Y-axis-on-proc-lifetest-to-percents/m-p/412807#M14167</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #333333;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #333333;"&gt;I am trying to change the Y axis from proportion (between 0 to 1) to percent (between 0% to 100%) on the proc lifetest&amp;nbsp;without success.&amp;nbsp;I understand how to use the proc template even in the Failure graph and&amp;nbsp;managed to change the minimum, the maximum and the tickvaluelist of the Y axis&amp;nbsp;on&amp;nbsp;the next statement in proc template:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #333333;"&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #333333;"&gt;yaxisopts=(label="Probability to &amp;amp;XXX" shortlabel="Failure"&lt;BR /&gt;linearopts=(viewmin=0 viewmax=1 tickvaluelist=(0 .2 .4 .6 .8 1.0)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #333333;"&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #333333;"&gt;but when I try to change it to:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #333333;"&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #333333;"&gt;yaxisopts=(label="Probability to &amp;amp;XXX" shortlabel="Failure"&lt;BR /&gt;linearopts=(viewmin=0 viewmax=100 tickvaluelist=(0&amp;nbsp;20&amp;nbsp;40&amp;nbsp;60&amp;nbsp;80&amp;nbsp;100)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #333333;"&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #333333;"&gt;it changes the Y axis but the line of&amp;nbsp;the graph ranges from 0 to 1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #333333;"&gt;&amp;nbsp;any suggestion on how to solve this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #333333;"&gt;I know that in the Gplot graph I can use the format for the Y axis. But it's not working here either...&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 08:19:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-i-change-the-Y-axis-on-proc-lifetest-to-percents/m-p/412807#M14167</guid>
      <dc:creator>ShuliH</dc:creator>
      <dc:date>2017-11-13T08:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do i change the Y axis  on proc lifetest to percents?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-i-change-the-Y-axis-on-proc-lifetest-to-percents/m-p/412838#M14169</link>
      <description>&lt;P&gt;I don't remember the variable off hand, but if it is Y, and it appears like this:Y=Y&lt;/P&gt;
&lt;P&gt;Then change it to Y=eval(100*Y)&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 11:33:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-i-change-the-Y-axis-on-proc-lifetest-to-percents/m-p/412838#M14169</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-11-13T11:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do i change the Y axis  on proc lifetest to percents?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-i-change-the-Y-axis-on-proc-lifetest-to-percents/m-p/412851#M14170</link>
      <description>&lt;P&gt;I'm not entirely sure on this one, but can't you simply edit the TICKVALUEFORMAT option instead of editing the actual values?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Correct me if I'm wrong &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16777"&gt;@WarrenKuhfeld&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 11:55:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-i-change-the-Y-axis-on-proc-lifetest-to-percents/m-p/412851#M14170</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-11-13T11:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do i change the Y axis  on proc lifetest to percents?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-i-change-the-Y-axis-on-proc-lifetest-to-percents/m-p/412854#M14171</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31304"&gt;@PeterClemmensen&lt;/a&gt;, that should work too!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 11:57:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-i-change-the-Y-axis-on-proc-lifetest-to-percents/m-p/412854#M14171</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-11-13T11:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do i change the Y axis  on proc lifetest to percents?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-i-change-the-Y-axis-on-proc-lifetest-to-percents/m-p/412872#M14172</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #333333;"&gt;Thanks for the response,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #333333;"&gt;in this graph the Y&amp;nbsp;is calculated cumulatively from the cases that appear in the X so I can't use this option.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 13:07:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-i-change-the-Y-axis-on-proc-lifetest-to-percents/m-p/412872#M14172</guid>
      <dc:creator>ShuliH</dc:creator>
      <dc:date>2017-11-13T13:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do i change the Y axis  on proc lifetest to percents?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-i-change-the-Y-axis-on-proc-lifetest-to-percents/m-p/412874#M14173</link>
      <description>&lt;P&gt;Thank you!&lt;BR /&gt;it worked!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 13:11:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-i-change-the-Y-axis-on-proc-lifetest-to-percents/m-p/412874#M14173</guid>
      <dc:creator>ShuliH</dc:creator>
      <dc:date>2017-11-13T13:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do i change the Y axis  on proc lifetest to percents?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-i-change-the-Y-axis-on-proc-lifetest-to-percents/m-p/412898#M14174</link>
      <description>&lt;P&gt;Good to hear, was not sure myself &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 13:55:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-i-change-the-Y-axis-on-proc-lifetest-to-percents/m-p/412898#M14174</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-11-13T13:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do i change the Y axis  on proc lifetest to percents?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-i-change-the-Y-axis-on-proc-lifetest-to-percents/m-p/530946#M17726</link>
      <description>&lt;P&gt;I am having the same problem as the original poster, but I cannot get the&amp;nbsp;&lt;SPAN&gt;TICKVALUEFORMAT&amp;nbsp;option to work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want the y-axis of a KM survival curve to display percentages from 0 to 100%, in intervals of 10%.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am not using gplot graph to make the graph, I am using proc lifetest.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am using the following modifications to the&amp;nbsp;%ProvideSurvivalMacros template:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%ProvideSurvivalMacros&lt;BR /&gt;%let yOptions = label="Survival (%)"&lt;BR /&gt;linearopts=(viewmin=0 viewmax=1&lt;BR /&gt;tickvaluelist=(0 .1 .2 .3 .4 .5 .6 .7 .8 .9 1)&lt;BR /&gt;tickvalueformat &lt;STRONG&gt;???&lt;/STRONG&gt; );&lt;BR /&gt;%CompileSurvivalTemplates&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc lifetest data=mydata plots=survival(atrisk test nocensor outside);&lt;BR /&gt;time days * event(0);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don't know what to put in place of "&lt;STRONG&gt;???&lt;/STRONG&gt;" after tickvalueformat to make it work&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any ideas??&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 13:24:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-i-change-the-Y-axis-on-proc-lifetest-to-percents/m-p/530946#M17726</guid>
      <dc:creator>ghbg</dc:creator>
      <dc:date>2019-01-29T13:24:23Z</dc:date>
    </item>
  </channel>
</rss>

