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.
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; 🙂
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
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.
Ready to level-up your skills? Choose your own adventure.