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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

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
  • 3 replies
  • 337 views
  • 0 likes
  • 2 in conversation