<?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 I lost my ability to plot in PROC LIFETEST for a Kaplan Meier Curve in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Help-I-lost-my-ability-to-plot-in-PROC-LIFETEST-for-a-Kaplan/m-p/898233#M24145</link>
    <description>&lt;P&gt;Hi ballardw...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much.&amp;nbsp; I think I found this same code when googling etc.&amp;nbsp; I tried it, but maybe I was doing something wrong.&amp;nbsp; I am very new to this, but will try again tomorrow.&amp;nbsp; I was able to regain my ability to create a graph/plot again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found this code that reset my settings and got everything back.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods path sashelp.tmplmst(read);&lt;BR /&gt;proc datasets library=sasuser nolist;&lt;BR /&gt;delete templat(memtype=itemstor);&lt;BR /&gt;run;&lt;BR /&gt;ods path reset;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much for getting back to me.&amp;nbsp; I will let you know if the suggested code you shared worked.&lt;/P&gt;</description>
    <pubDate>Wed, 11 Oct 2023 22:47:56 GMT</pubDate>
    <dc:creator>Gail28</dc:creator>
    <dc:date>2023-10-11T22:47:56Z</dc:date>
    <item>
      <title>Help I lost my ability to plot in PROC LIFETEST for a Kaplan Meier Curve</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Help-I-lost-my-ability-to-plot-in-PROC-LIFETEST-for-a-Kaplan/m-p/898044#M24139</link>
      <description>&lt;P&gt;I am looking for help in to regain my ability to graph the survival probability plot/graph from the PROC LIFETEST output.&lt;/P&gt;&lt;P&gt;I was trying to change the intervals on the y-axis and after googling how to do this, I tried a proc template and I lost the the graphing ability entirely.&amp;nbsp; I tried to use ODS GRAPHICS ON; to see if that worked and it didn't.&amp;nbsp; I keep getting this warning in the log.&lt;/P&gt;&lt;P&gt;WARNING: Insufficient data to produce 'Stat.Lifetest.Graphics.ProductLimitSurvival' Graph.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All I wanted was to adjust the y-axis range and now by trying something I had no idea what I was doing or what would happen, I now lost the graphing ability entirely.&amp;nbsp; I need it back.&amp;nbsp; Can someone please help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;Gail28&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 22:52:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Help-I-lost-my-ability-to-plot-in-PROC-LIFETEST-for-a-Kaplan/m-p/898044#M24139</guid>
      <dc:creator>Gail28</dc:creator>
      <dc:date>2023-10-10T22:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help I lost my ability to plot in PROC LIFETEST for a Kaplan Meier Curve</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Help-I-lost-my-ability-to-plot-in-PROC-LIFETEST-for-a-Kaplan/m-p/898064#M24140</link>
      <description>&lt;P&gt;If you have not done so already I would save the program code and restart SAS.&lt;/P&gt;
&lt;P&gt;Then see if the PREVIOUS plot without any template changes will work.&lt;/P&gt;
&lt;P&gt;If it doesn't plot then you will have to show us the code of the attempted template change.&lt;/P&gt;
&lt;P&gt;Likely the plot template code modified one of the SAS supplied templates and you need to restore that. Hopefully the code you used actually only provided a modified copy in a new location that needs to be cleared.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For most procedures when it comes to making custom graphs I output data from the analysis procedure into a data set (or 2 or 3) and then use that data in one of the graphing procedures like SGPlot or SGPanel because the attempts to modify a lot of the plots in the procedures like Lifetest are just a bit esoteric.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Google may sometimes help but you might start with the online help installed with SAS and look for "&lt;FONT size="4"&gt;&lt;STRONG&gt;Customizing the Kaplan-Meier Survival Plot&lt;/STRONG&gt;"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;There is an example that specifically shows&amp;nbsp; changing Y-axis values&lt;/P&gt;
&lt;PRE&gt;%ProvideSurvivalMacros

%let yOptions = label="Survival"
                linearopts=(viewmin=0 viewmax=1
                            tickvaluelist=(0 .25 .5 .75 1));

%CompileSurvivalTemplates

proc lifetest data=sashelp.BMT plots=survival(cb=hw test);
   time T * Status(0);
   strata Group;
run;
&lt;/PRE&gt;
&lt;P&gt;What that example does: The %ProvideSurvivalMacros compiles a set of macros for use with the KM plots so they are available in the current session.&lt;/P&gt;
&lt;P&gt;The second line overrides some of the Yaxis options from the default just compiled of&lt;/P&gt;
&lt;PRE&gt;/* DEFAULT yoptions*/
%let yOptions   = label="Survival Probability" shortlabel="Survival"
                  linearopts=(viewmin=0 viewmax=1
                              tickvaluelist=(0 .2 .4 .6 .8 1.0));
&lt;/PRE&gt;
&lt;P&gt;a quick comparison shows the LABEL= value has changed and that the tick mark values have changed (I think this is the bit that you want.&lt;/P&gt;
&lt;P&gt;The %CompileSurvivalTemplates then re-compiles the survival template macros that are called by the procedure to make the plots but incorporates the Yoptions set. Pick the values you want to appear as the Y axis tick marks in the value list. &lt;STRONG&gt;Watch the matching&lt;/STRONG&gt; &lt;STRONG&gt;parentheses! &lt;/STRONG&gt;Do not use any commas inside the Yoptions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have something with Proc Template starting from scratch then likely that is likely overkill&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 07:29:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Help-I-lost-my-ability-to-plot-in-PROC-LIFETEST-for-a-Kaplan/m-p/898064#M24140</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-10-11T07:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help I lost my ability to plot in PROC LIFETEST for a Kaplan Meier Curve</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Help-I-lost-my-ability-to-plot-in-PROC-LIFETEST-for-a-Kaplan/m-p/898233#M24145</link>
      <description>&lt;P&gt;Hi ballardw...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much.&amp;nbsp; I think I found this same code when googling etc.&amp;nbsp; I tried it, but maybe I was doing something wrong.&amp;nbsp; I am very new to this, but will try again tomorrow.&amp;nbsp; I was able to regain my ability to create a graph/plot again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found this code that reset my settings and got everything back.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods path sashelp.tmplmst(read);&lt;BR /&gt;proc datasets library=sasuser nolist;&lt;BR /&gt;delete templat(memtype=itemstor);&lt;BR /&gt;run;&lt;BR /&gt;ods path reset;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much for getting back to me.&amp;nbsp; I will let you know if the suggested code you shared worked.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 22:47:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Help-I-lost-my-ability-to-plot-in-PROC-LIFETEST-for-a-Kaplan/m-p/898233#M24145</guid>
      <dc:creator>Gail28</dc:creator>
      <dc:date>2023-10-11T22:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help I lost my ability to plot in PROC LIFETEST for a Kaplan Meier Curve</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Help-I-lost-my-ability-to-plot-in-PROC-LIFETEST-for-a-Kaplan/m-p/898347#M24148</link>
      <description>&lt;P&gt;I think i may end up taking the option out putting the data and kind of trying another plotting procedure performing another patchwork method to focus on graphing the data of interest.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 16:23:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Help-I-lost-my-ability-to-plot-in-PROC-LIFETEST-for-a-Kaplan/m-p/898347#M24148</guid>
      <dc:creator>Gail28</dc:creator>
      <dc:date>2023-10-12T16:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Help I lost my ability to plot in PROC LIFETEST for a Kaplan Meier Curve</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Help-I-lost-my-ability-to-plot-in-PROC-LIFETEST-for-a-Kaplan/m-p/898350#M24149</link>
      <description>There are a ton of examples that do this, check the SAS blogs for several example codes using SGPLOT.</description>
      <pubDate>Thu, 12 Oct 2023 16:35:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Help-I-lost-my-ability-to-plot-in-PROC-LIFETEST-for-a-Kaplan/m-p/898350#M24149</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-10-12T16:35:14Z</dc:date>
    </item>
  </channel>
</rss>

