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

This is my code, but I just realized the result I have are all missing values.   I wonder how can I get the median survival time?

 

proc lifetest data=survival method=km;
time survival_time * event(0);
strata race;
run;

 

Capture.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
OsoGris
SAS Employee

You need to look at your survival curve/survival estimates.   If the curve doesn't drop below S(t) = 0.50 then the median does not exist.    I suspect the same for all of your other quartiles as well.   They may not exist for your data. 

View solution in original post

1 REPLY 1
OsoGris
SAS Employee

You need to look at your survival curve/survival estimates.   If the curve doesn't drop below S(t) = 0.50 then the median does not exist.    I suspect the same for all of your other quartiles as well.   They may not exist for your data. 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 1 reply
  • 552 views
  • 1 like
  • 2 in conversation