BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
riyaaora275
Obsidian | Level 7

Hi,

 

My code -

ods output productlimitestimates = sds ;


proc lifetest data=graph2_B_G  timelist= 0 100 200 300 400 500 600 700 800 900 1000 plots=(survival( atrisk=0 to 1000 by 100 ) )maxtime = 1000;
time time*status(0);
strata drg_class_detail;
run;

The numbers that i get from the product-limit-estimate table (number surviving) are not the same as the numbers i get on the graph with the atrisk number. Can anyone please help explain why that is the case?

 

What is the difference in the calculation?

 

even the numbers for the time-0 are different 

Eg;

 Atrisk Product-lim-estimate 
timegroup1group2group1group2
02050205020432048
1001454148114511480
2001186121711821213
300894848892845

 

1 ACCEPTED SOLUTION

Accepted Solutions
FreelanceReinh
Jade | Level 19

Hi @riyaaora275,

 

Your survival times are discrete. The numbers of subjects at risk in the graph (denoted by Yi in section Breslow, Fleming-Harrington, and Kaplan-Meier Methods of the PROC LIFETEST documentation) are counted "just prior to" the respective time points, whereas the columns "Number Left" and "Number Failed" in the table "Product-Limit Survival Estimates" (i.e., variables Left and Failed in your dataset sds) take the events (failures or censoring) at the respective time points already into account (event by event) -- not at time 0, though, when using the TIMELIST= option. So the small differences are the numbers of subjects whose event times equal 0, 100, 200, etc., respectively.

View solution in original post

1 REPLY 1
FreelanceReinh
Jade | Level 19

Hi @riyaaora275,

 

Your survival times are discrete. The numbers of subjects at risk in the graph (denoted by Yi in section Breslow, Fleming-Harrington, and Kaplan-Meier Methods of the PROC LIFETEST documentation) are counted "just prior to" the respective time points, whereas the columns "Number Left" and "Number Failed" in the table "Product-Limit Survival Estimates" (i.e., variables Left and Failed in your dataset sds) take the events (failures or censoring) at the respective time points already into account (event by event) -- not at time 0, though, when using the TIMELIST= option. So the small differences are the numbers of subjects whose event times equal 0, 100, 200, etc., respectively.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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