SAS Programming

DATA Step, Macro, Functions and more
BookmarkSubscribeRSS Feed
Lindy
Calcite | Level 5

Hi folks, 

I have a question. I know people can use multiple comparisons such as Hsu's MCB to find out among several groups, which pair of group have the biggest contrast of the treatment mean, and which groups do not differ in their means of treatment effects. 

Now I have a data for survival analysis in which there are several groups, I want to compare their survival risk curve in the observation time  to see which groups do not differ and which group different using MCB. Is that possible? I know using Kaplan-Meier curve we can only compare each two groups to see if they differ in survival risk. But I hope to have something like Hsu's MCB so that I can lump those groups that do not differ in their survival risk together into one group. 

2 REPLIES 2
PGStats
Opal | Level 21

Have you considered options diff= and adjust= in statement strata of proc lifetest

PG
Lindy
Calcite | Level 5

I used adjust= statement 

This is my code

 

 

proc lifetest data = roads.tepfulldata plots=survival(atrisk);
time survivaltime*censor_1(1);
strata prior_group/test=logrank adjust=sidak;
run;

 

 

But this code give me an output in which every 2 of the 16 categories of "prior_group' variable--a categorical variable with 16 values. 

So generally this code can only help me figure out of every two groups are different from each other, but not the info about if the survival risk of multiple groups DO NOT differ thus be lumped together as one group. 

 

sas-innovate-white.png

Join us for our biggest event of the year!

Four days of inspiring keynotes, product reveals, hands-on learning opportunities, deep-dive demos, and peer-led breakouts. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1098 views
  • 0 likes
  • 2 in conversation