BookmarkSubscribeRSS Feed
deleted_user
Not applicable
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.
2 REPLIES 2
Cynthia_sas
Diamond | Level 26
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 )
deleted_user
Not applicable
Thanks a lot Cynthia.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Update

Health and Life Sciences Learning

 

Need courses to help you with SAS Life Sciences Analytics Framework, SAS Health Cohort Builder, or other topics? Check out the Health and Life Sciences learning path for all of the offerings.

LEARN MORE

Discussion stats
  • 2 replies
  • 1222 views
  • 0 likes
  • 2 in conversation