BookmarkSubscribeRSS Feed
new510
Fluorite | Level 6

Dear All,

I am using the Proc lifetest and GTL template to generate a survival graph. How can I modify the GTL survival template and add a curve label to the graph output?

I really appreciate any help you can provide.

Thank you.

2 REPLIES 2
Reeza
Super User
If you post what you have so far, it would be infinitely easier to help you out.
new510
Fluorite | Level 6

I found the answer. I need to add the curvelabel= and curvelabelposition= options in the stepplot. 

 

stepplot y=eval (1-SURVIVAL) x=TIME / group=STRATUM index=STRATUMNUM name="Survival" rolename=(_tip1=ATRISK
_tip2=EVENT) tiplabel=(y="Survival Probability" _tip1="Number at Risk" _tip2="Observed Events") tip=(x y
_tip1 _tip2)  curvelabel=STRATUM curvelabelposition=min; 🙂

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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