BookmarkSubscribeRSS Feed
Anita_n
Pyrite | Level 9
Dear all,
I have a question. Is it possible to create a kaplanmeier plot using sgplot without first using the life test procedure.
Attached is my sample file. T is the time to next treatment in days. And treatment is the therapy received. There is no censored patient that is why censor =0.
3 REPLIES 3
sbxkoenk
SAS Super FREQ


Survival plot with a twist using SGPLOT procedure
By Sanjay Matange on Graphically Speaking February 19, 2018
https://blogs.sas.com/content/graphicallyspeaking/2018/02/19/survival-plot-twist-using-sgplot-proced...

 

 
Anita_n
Pyrite | Level 9
Thanks ,I have already seen this post. But I wanted to know if this is possible without the life test procedure
sbxkoenk
SAS Super FREQ

Oh sorry. I missed the 'WITHOUT'.

 

You can do Kaplan-Meier without PROC LIFETEST of course.

Just program it in a data step !

 

The Kaplan-Meier estimate is the simplest way of computing the survival over time in spite of all these difficulties associated with subjects or situations. For each time interval, survival probability is calculated as the number of subjects surviving divided by the number of patients at risk.

 

PharmaSUG2011 - Paper CC16
A Programmer’s Introduction to Survival Analysis Using Kaplan Meier
Methods
John Ventre, United Biosource Corporation, Blue Bell, PA
Lisa Fine, United Biosource Corporation, Ann Arbor, MI
https://www.pharmasug.org/proceedings/2011/CC/PharmaSUG-2011-CC16.pdf

 

Introduction to Survival Analysis in SAS
https://stats.oarc.ucla.edu/sas/seminars/sas-survival/

 

Koen

 

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 675 views
  • 0 likes
  • 2 in conversation