Haxis option in Proc Lifetest

Reply
N/A
Posts: 0

Haxis option in Proc Lifetest

Is there any way in Proc lifetest where I can change the range in horizontal axis instead of getting the default output? e.g. something like using haxis in proc gplot, where I may get the desired output.

Any reply will be highly appreciated.

Thanks in advance.
SAS Super FREQ
Posts: 8,721

Re: Haxis option in Proc Lifetest

Hi:
I don't know much about PROC LIFETEST, but there is a Tech Support note that seems to contain a lot of info on customizing PROC LIFETEST graphs or reproducing them with PROC GPLOT (which does have a lot of customization ability).

In addition, PROC LIFETEST is one of the procs that supports ODS GRAPHICS (which is still experimental in SAS 9.1.3 -- if you want to adjust the axis for ODS GRAPHICS output, then you might want to contact Tech Support for help in that regard.

cynthia

here's an example of how you'd use PROC LIFETEST with ODS GRAPHICS:
[pre]

ods html path='c:\temp' (url=none)
gpath='c:\temp' (url=none)
file='lifetest.html'
style=statistical;
ods graphics on/ imagefmt=static;
goptions reset=(symbol axis);

symbol1 c=blue; symbol2 c=orange;
proc lifetest data=Exposed outsurv=outsurv
plots=(s,lls) noprint;
time Days*Status(0);
strata Treatment;
run;

ods graphics off;
ods html close;

[/pre]
(based on the data in this example but using ODS Graphics instead of GPLOT
http://support.sas.com/kb/30/addl/fusion_30602_1_lifetest_create_survival_plots_using_gplot.sas.txt )
N/A
Posts: 0

Re: Haxis option in Proc Lifetest

Thanks a lot Cynthia.
Ask a Question
Discussion stats
  • 2 replies
  • 327 views
  • 0 likes
  • 2 in conversation