I'm trying to convert the tick value of Y-Axis Scale from (0 .2 .4 .6 .8 1.0) to (0 .01 .02 .03 .04 .05), but failed. However, no such problem when converting viewmax
PROC TEMPLATE;
DELETE Stat.Lifetest.Graphics.ProductLimitFailure2;
SOURCE Stat.Lifetest.Graphics.ProductLimitFailure2 / FILE='C:\Users\Username\Documents\My SAS Files\9.4\tpl.tpl';
QUIT;
DATA _null_;
INFILE 'C:\Users\Username\Documents\My SAS Files\9.4\tpl.tpl' END=eof;
INPUT;
IF _n_ eq 1 THEN CALL execute('PROC TEMPLATE;');
_infile_ = tranwrd(_infile_, 'viewmax=1', 'viewmax=0.05'); /* tranwrd(var, from, to);*/
_infile_ = tranwrd(_infile_, 'tickvaluelist=(0 .2 .4 .6 .8 1.0)', 'tickvaluelist=(0 .01 .02 .03 .04 .05)');
CALL execute(_infile_);
IF eof THEN CALL execute('quit;');
RUN;
PROC LIFETEST DATA=for_analysis_1 PLOT=SURVIVAL (FAILURE TEST ATRISK(OUTSIDE(0.10) MAXLEN=26) NOCENSOR) NOTABLE;
TIME Days * Status(0);
STRATA group;
RUN;
**This code was adapted from: https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_kaplan_sect012.htm
Thank you, Joe
I was running SAS with zt mode. It worked successfully after changing to EN mode. Besides, open the .tpl file and edit it by hand is a easy way too! Very appreciate that.
**Change the default SASĀ® session encoding: https://support.sas.com/kb/51/586.html