Statistical Procedures

Programming the statistical procedures from SAS
BookmarkSubscribeRSS Feed
Faker
Calcite | Level 5

Hello,

 

I am conducting a survival analysis using proc lifetest to compare two treatments. I need to obtain the difference in median survival times between the two treatments and the corresponding 95% confidence interval. However, the standard output seems to only provide the medians and 95% confidence intervals for each treatment, but not the difference between the treatments. Is there a way to achieve this in SAS?

 

Thank you very much

3 REPLIES 3
Faker
Calcite | Level 5

Hi Ksharp,

 

Thank you for your reply.

 

I saw this example in the document (as shown in the figure below). Since the code performs a log transformation, the estimated coefficient after taking exp should be a ratio rather than a difference.

 

I would like to ask further how to obtain the median difference and its 95% CI in this procedure .

 

Alternatively, I have thought of two other ways to handle this. I'm not sure if they are appropriate:

 

1. Using the formula provided in the example, first calculate the 50% survival time for both groups and also calculate their 95% CI. The median difference and its 95% CI can be obtained by subtracting the 50% survival times of the two groups.

2. Remove the log transformation from the code. The estimated value obtained will be the difference between the two groups, which would be the median difference.

 

q1.PNGq2.PNG

 

 

Thank you!

 

Ksharp
Super User

I don't agree with 1).

But agree with 2) .

Here is an example:

data have;
set sashelp.bmt;
if Group ne 'ALL';
run;


proc quantlife data=have  seed=1268;
class group;
model T*Status(0) = group / quantile=(0.25 0.5);
run;

Ksharp_0-1726470487019.png

Using PROC LIFETEST to check the median of these two groups:


proc lifetest data=have;
strata group;
time T*Status(0);
run;

Ksharp_1-1726470549858.png

Ksharp_2-1726470568649.png

Here 183-2204=-2021 . is the same as PROC QUANTLIFE .

 

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
  • 3 replies
  • 1121 views
  • 1 like
  • 2 in conversation