BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Sairampulipati
Fluorite | Level 6

Hi, 

I am faicng issue in getting a median line horizontal at 0.5 where my Y-axis is 0 to 1 by 0.2 for Kaplan Meier Plot using proc life test. I am using SAS EG and platform is SAS 9.4;

1 ACCEPTED SOLUTION

Accepted Solutions
FreelanceReinh
Jade | Level 19

Hi @Sairampulipati,

 

Do you face the same issue if you try to replicate the example Adding a Y-Axis Reference Line from the SAS documentation, that is, if you compile the macro code copied from https://support.sas.com/documentation/onlinedoc/stat/ex_code/151/templft.html and then run the code from the example?

View solution in original post

4 REPLIES 4
FreelanceReinh
Jade | Level 19

Hi @Sairampulipati,

 

Do you face the same issue if you try to replicate the example Adding a Y-Axis Reference Line from the SAS documentation, that is, if you compile the macro code copied from https://support.sas.com/documentation/onlinedoc/stat/ex_code/151/templft.html and then run the code from the example?

Sairampulipati
Fluorite | Level 6

Hi @FreelanceReinh

 

Thank you so much this works, I have few questions about the macro. Is the macro developed by SAS and is it validated? Can you please share more details about the macro. Thanks again.  

FreelanceReinh
Jade | Level 19

You're welcome.

 

Those macros are closely linked to the name of SAS employee Warren F. Kuhfeld, PhD (now retired), see his initials in the header of the code (where also the "update" date July 25, 2013 documents how long they have been available and certainly used by many SAS programmers around the globe). So I assume that the macros were developed by himself or under his guidance. At least, he is the author of the documentation, as you can read in https://blogs.sas.com/content/author/warrenkuhfeld/ together with more information about him. He also wrote the 2017 blog article Customizing the Kaplan-Meier Plot and answered related questions in the SAS Support Communities, e.g., Re: Format KM curve with median survival line.

 

I can't imagine that SAS Institute would provide such macros in their official documentation if they weren't validated.

WarrenKuhfeld
Ammonite | Level 13

Yes, it was all me. I covered every example that I ever heard of at the time where a user wanted to customize the KM plot. Every example in that chapter used the actual macros. 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 1086 views
  • 2 likes
  • 3 in conversation