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. 

Catch up on SAS Innovate 2026

Dive into keynotes, announcements and breakthroughs on demand.

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