Statistical Procedures

Programming the statistical procedures from SAS
BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
djbateman
Lapis Lazuli | Level 10

While producing a Kaplan-Meier survival plot, I added the number of patients at risk at given time points.  To get the at-risk counts, I used the default values (the LEFT variable) produced in PROC LIFETEST from the ProductLimitEstimates ODS output table:

ods output ProductLimitEstimates=ple;

proc lifetest data=efficacy timelist=(0 to 75 by 5);

      time survtime*censorflag(0);

      strata trtgrp;

run;

If a patient experiences an event at a time point cut off (say, exactly 10 weeks), then SAS does not count that patient as being at risk.  However, I have been told by both our program validator and biostatistician consultant that such patients should be counted as being at risk.  Is there an option in SAS that would allow me to specify to count those patients, or do I have to manually run the data through a loop and count them up on my own?  I was originally using SAS 9.1.3, but I was able to upgrade to SAS 9.3 this week.  Wahoo!

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

Don't have a book to double check at the moment but try changing the method to the actuarial method Method=LT in your proc lifetest statement, or add a slight 'fudge' factor, ie change 10 to 10.0001.  Or compute it manually.

View solution in original post

2 REPLIES 2
Reeza
Super User

Don't have a book to double check at the moment but try changing the method to the actuarial method Method=LT in your proc lifetest statement, or add a slight 'fudge' factor, ie change 10 to 10.0001.  Or compute it manually.

djbateman
Lapis Lazuli | Level 10

The fudge factor seemed to be my best bet.  Thanks!

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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