<?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 y axis %CompileSurvivalTemplates error in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-lifetest-change-y-axis-CompileSurvivalTemplates-error/m-p/947216#M47351</link>
    <description>&lt;P&gt;If you don't want to use templates from your SASUSER library then do not include that catalog in the ODS PATH statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods path work.templat(update) SASHELP.TMPLMST(READ) ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 12 Oct 2024 18:53:47 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2024-10-12T18:53:47Z</dc:date>
    <item>
      <title>proc lifetest change y axis %CompileSurvivalTemplates error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-lifetest-change-y-axis-CompileSurvivalTemplates-error/m-p/947198#M47346</link>
      <description>&lt;P&gt;I want to change proc lifetest y axis. It seems I can use macros to change it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%ProvideSurvivalMacros&lt;/P&gt;&lt;P&gt;%let yOptions = label="Survival"&lt;BR /&gt;linearopts=(viewmin=0.2 viewmax=1&lt;BR /&gt;tickvaluelist=(0 .2 .4 .6 .8 1.0));&lt;/P&gt;&lt;P&gt;%CompileSurvivalTemplates&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However,&amp;nbsp; I don’t have permission to compile the template in SASUSER .templat.&amp;nbsp; Is there a way to use an updated ‘Stat.Lifetest.Graphics.ProductLimitSurvival’ in work.templat?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Oct 2024 01:34:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-lifetest-change-y-axis-CompileSurvivalTemplates-error/m-p/947198#M47346</guid>
      <dc:creator>fanuser</dc:creator>
      <dc:date>2024-10-12T01:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: proc lifetest change y axis %CompileSurvivalTemplates error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-lifetest-change-y-axis-CompileSurvivalTemplates-error/m-p/947200#M47347</link>
      <description>&lt;P&gt;No idea what those macros are or what code they generate, but in general where templates are written are determined by &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p03q7l9284sg38n1d9186k3i7u3c.htm" target="_self"&gt;ODS PATH statements&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can see your current setting by looking at the automatic macro variable SYSODSPATH.&amp;nbsp; Example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;    1  %put &amp;amp;=sysodspath ;
SYSODSPATH= SASUSER.TEMPLAT(UPDATE) SASHELP.TMPLMST(READ)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or use ODS PATH SHOW statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So try pointing the options to write to WORK instead and to read from WORK before the others.&amp;nbsp; Example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods path work.templat(update) SASUSER.TEMPLAT(read) SASHELP.TMPLMST(READ)&amp;nbsp;;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then try using your macros.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Oct 2024 02:40:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-lifetest-change-y-axis-CompileSurvivalTemplates-error/m-p/947200#M47347</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-10-12T02:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: proc lifetest change y axis %CompileSurvivalTemplates error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-lifetest-change-y-axis-CompileSurvivalTemplates-error/m-p/947203#M47348</link>
      <description>&lt;P&gt;You could save data from proc lifetest and customize it by PROC SGPLOT .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
   value grpLabel 1='ALL' 2='AML low risk' 3='AML high risk';
run;

data BMT;
        input DIAGNOSIS Ftime Status Gender@@;
        label Ftime="Days";
        format Diagnosis grpLabel.;
datalines;
1       2081       0       1       1       1602    0       1
1       1496       0       1       1       1462    0       0
1       1433       0       1       1       1377    0       1
1       1330       0       1       1       996     0       1
1       226        0       0       1       1199    0       1
1       1111       0       1       1       530     0       1
1       1182       0       0       1       1167    0       0
1       418        2       1       1       383     1       1
1       276        2       0       1       104     1       1
1       609        1       1       1       172     2       0
1       487        2       1       1       662     1       1
1       194        2       0       1       230     1       0
1       526        2       1       1       122     2       1
1       129        1       0       1       74      1       1
1       122        1       0       1       86      2       1
1       466        2       1       1       192     1       1
1       109        1       1       1       55      1       0
1       1          2       1       1       107     2       1
1       110        1       0       1       332     2       1
2       2569       0       1       2       2506    0       1
2       2409       0       1       2       2218    0       1
2       1857       0       0       2       1829    0       1
2       1562       0       1       2       1470    0       1
2       1363       0       1       2       1030    0       0
2       860        0       0       2       1258    0       0
2       2246       0       0       2       1870    0       0
2       1799       0       1       2       1709    0       0
2       1674       0       1       2       1568    0       1
2       1527       0       0       2       1324    0       1
2       957        0       1       2       932     0       0
2       847        0       1       2       848     0       1
2       1850       0       0       2       1843    0       0
2       1535       0       0       2       1447    0       0
2       1384       0       0       2       414     2       1
2       2204       2       0       2       1063    2       1
2       481        2       1       2       105     2       1
2       641        2       1       2       390     2       1
2       288        2       1       2       421     1       1
2       79         2       0       2       748     1       1
2       486        1       0       2       48      2       0
2       272        1       0       2       1074    2       1
2       381        1       0       2       10      2       1
2       53         2       0       2       80      2       0
2       35         2       0       2       248     1       1
2       704        2       0       2       211     1       1
2       219        1       1       2       606     1       1
3       2640       0       1       3       2430    0       1
3       2252       0       1       3       2140    0       1
3       2133       0       0       3       1238    0       1
3       1631       0       1       3       2024    0       0
3       1345       0       1       3       1136    0       1
3       845        0       0       3       422     1       0
3       162        2       1       3       84      1       0
3       100        1       1       3       2       2       1
3       47         1       1       3       242     1       1
3       456        1       1       3       268     1       0
3       318        2       0       3       32      1       1
3       467        1       0       3       47      1       1
3       390        1       1       3       183     2       0
3       105        2       1       3       115     1       0
3       164        2       0       3       93      1       0
3       120        1       0       3       80      2       1
3       677        2       1       3       64      1       0
3       168        2       0       3       74      2       0
3       16         2       0       3       157     1       0
3       625        1       0       3       48      1       0
3       273        1       1       3       63      2       1
3       76         1       1       3       113     1       0
3       363        2       1
;
run;


ods select none;
ods output SurvivalPlot=SurvivalPlot;
proc lifetest data=bmt plots=(survival);
time ftime*Status(0);
strata diagnosis;
run;
ods select all;



title '缓解概率';
proc sgplot data=SurvivalPlot;
step x=Time y=Survival / group=Stratum lineattrs=(pattern=solid)  ;
scatter x=Time y=Censored / group=Stratum markerattrs=(symbol=plus);
inset '+ Censored'/position=ne border;
yaxis values=(0 to 1 by 0.1);
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-1728715185996.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/101161iBC89A7DE87CEC4F8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1728715185996.png" alt="Ksharp_0-1728715185996.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Oct 2024 06:40:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-lifetest-change-y-axis-CompileSurvivalTemplates-error/m-p/947203#M47348</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-10-12T06:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: proc lifetest change y axis %CompileSurvivalTemplates error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-lifetest-change-y-axis-CompileSurvivalTemplates-error/m-p/947209#M47349</link>
      <description>&lt;P&gt;Thank you, Tom.&amp;nbsp; I specified the path to work.templat&amp;nbsp; as follows:&lt;/P&gt;&lt;PRE class=""&gt;&lt;CODE&gt;ods path work.templat(update) SASUSER.TEMPLAT(read) SASHELP.TMPLMST(READ) ;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;The macros are working in ' work.templat'. However,&amp;nbsp; when I ran proc lifetest ,&amp;nbsp; the procedure pointed to SASUSER.TEMPLAT again. I'm not sure&amp;nbsp; if &lt;STRONG&gt;I can instruct the 'proc lifetest' procedure to point to work.templat&lt;/STRONG&gt;. I use the following codes to get the plot.&amp;nbsp; Many functions in the procedure are very nice, and the modularized templates would be very useful if I could point&amp;nbsp;the 'proc lifetest' procedure to work.templat.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class=""&gt;&lt;CODE&gt;proc lifetest data=bmt plots=(survival);
time ftime*Status(0);
strata diagnosis;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class=""&gt;data&lt;/SPAN&gt; &lt;SPAN class=""&gt;_null_&lt;/SPAN&gt;&lt;SPAN class=""&gt;;&lt;/SPAN&gt; &lt;SPAN class=""&gt;%let&lt;/SPAN&gt;&lt;SPAN&gt; url &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;/&lt;/SPAN&gt;&lt;SPAN class=""&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;support&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;sas&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;com&lt;/SPAN&gt;&lt;SPAN class=""&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;documentation&lt;/SPAN&gt;&lt;SPAN class=""&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;onlinedoc&lt;/SPAN&gt;&lt;SPAN class=""&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;stat&lt;/SPAN&gt;&lt;SPAN class=""&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;ex_code&lt;/SPAN&gt;&lt;SPAN class=""&gt;/&lt;/SPAN&gt;&lt;SPAN class=""&gt;151&lt;/SPAN&gt;&lt;SPAN class=""&gt;;&lt;/SPAN&gt; &lt;SPAN class=""&gt;infile&lt;/SPAN&gt; &lt;SPAN class=""&gt;"http:&amp;amp;url/templft.html"&lt;/SPAN&gt;&lt;SPAN&gt; device&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;url&lt;/SPAN&gt;&lt;SPAN class=""&gt;;&lt;/SPAN&gt; &lt;SPAN class=""&gt;file&lt;/SPAN&gt; &lt;SPAN class=""&gt;'macros.tmp'&lt;/SPAN&gt;&lt;SPAN class=""&gt;;&lt;/SPAN&gt; &lt;SPAN class=""&gt;retain&lt;/SPAN&gt;&lt;SPAN&gt; pre &lt;/SPAN&gt;&lt;SPAN class=""&gt;0&lt;/SPAN&gt;&lt;SPAN class=""&gt;;&lt;/SPAN&gt;&lt;SPAN&gt; input&lt;/SPAN&gt;&lt;SPAN class=""&gt;;&lt;/SPAN&gt;&lt;SPAN&gt; _infile_ &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;tranwrd&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;_infile_&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;'&amp;amp;amp;'&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;'&amp;amp;'&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;;&lt;/SPAN&gt;&lt;SPAN&gt; _infile_ &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;tranwrd&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;_infile_&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;'&amp;amp;lt;'&lt;/SPAN&gt; &lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;'&amp;lt;'&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;;&lt;/SPAN&gt; &lt;SPAN class=""&gt;if&lt;/SPAN&gt; &lt;SPAN class=""&gt;index&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;_infile_&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;'&amp;lt;/pre&amp;gt;'&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt; &lt;SPAN class=""&gt;then&lt;/SPAN&gt;&lt;SPAN&gt; pre &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;0&lt;/SPAN&gt;&lt;SPAN class=""&gt;;&lt;/SPAN&gt; &lt;SPAN class=""&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; pre &lt;/SPAN&gt;&lt;SPAN class=""&gt;then&lt;/SPAN&gt; &lt;SPAN class=""&gt;put&lt;/SPAN&gt;&lt;SPAN&gt; _infile_&lt;/SPAN&gt;&lt;SPAN class=""&gt;;&lt;/SPAN&gt; &lt;SPAN class=""&gt;if&lt;/SPAN&gt; &lt;SPAN class=""&gt;index&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;_infile_&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;'&amp;lt;pre&amp;gt;'&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt; &lt;SPAN class=""&gt;then&lt;/SPAN&gt;&lt;SPAN&gt; pre &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;1&lt;/SPAN&gt;&lt;SPAN class=""&gt;;&lt;/SPAN&gt; &lt;SPAN class=""&gt;run&lt;/SPAN&gt;&lt;SPAN class=""&gt;;&lt;/SPAN&gt; &lt;SPAN class=""&gt;%inc&lt;/SPAN&gt; &lt;SPAN class=""&gt;'macros.tmp'&lt;/SPAN&gt; &lt;SPAN class=""&gt;/&lt;/SPAN&gt;&lt;SPAN&gt; nosource&lt;/SPAN&gt;&lt;SPAN class=""&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;%ProvideSurvivalMacros&lt;/P&gt;&lt;P&gt;%let yOptions = label="Survival"&lt;BR /&gt;linearopts=(viewmin=0.2 viewmax=1&lt;BR /&gt;tickvaluelist=(0 .2 .4 .6 .8 1.0));&lt;/P&gt;&lt;P&gt;%CompileSurvivalTemplates&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Oct 2024 14:54:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-lifetest-change-y-axis-CompileSurvivalTemplates-error/m-p/947209#M47349</guid>
      <dc:creator>fanuser</dc:creator>
      <dc:date>2024-10-12T14:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: proc lifetest change y axis %CompileSurvivalTemplates error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-lifetest-change-y-axis-CompileSurvivalTemplates-error/m-p/947210#M47350</link>
      <description>Thanks! I'm looking for 'proc lifetest' procedure to point to work.templat</description>
      <pubDate>Sat, 12 Oct 2024 14:57:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-lifetest-change-y-axis-CompileSurvivalTemplates-error/m-p/947210#M47350</guid>
      <dc:creator>fanuser</dc:creator>
      <dc:date>2024-10-12T14:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: proc lifetest change y axis %CompileSurvivalTemplates error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-lifetest-change-y-axis-CompileSurvivalTemplates-error/m-p/947216#M47351</link>
      <description>&lt;P&gt;If you don't want to use templates from your SASUSER library then do not include that catalog in the ODS PATH statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods path work.templat(update) SASHELP.TMPLMST(READ) ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Oct 2024 18:53:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-lifetest-change-y-axis-CompileSurvivalTemplates-error/m-p/947216#M47351</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-10-12T18:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: proc lifetest change y axis %CompileSurvivalTemplates error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-lifetest-change-y-axis-CompileSurvivalTemplates-error/m-p/947232#M47352</link>
      <description>&lt;P&gt;Did you check this ?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_kaplan_sect016.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_kaplan_sect016.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1728783506746.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/101166i1E074FBF80D8FAD4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1728783506746.png" alt="Ksharp_0-1728783506746.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Oct 2024 01:39:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-lifetest-change-y-axis-CompileSurvivalTemplates-error/m-p/947232#M47352</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-10-13T01:39:31Z</dc:date>
    </item>
  </channel>
</rss>

