BookmarkSubscribeRSS Feed
sasworker16
Calcite | Level 5

Hello,

 

I ran the following command in SAS:

 

PROC LIFETEST data=w.cancer PLOTS= survival(nocensored); TIME FU_WK*Death(0); STRATA Chemo_Group; run;

ODS GRAPHICS OFF

 

Chemo_Group=>1, 2, 3

 

Is there a way to rename the Chemo_Group on the graph without having to change the names in the variable?  

 

Currently, I am getting ...

 

STRATA:

-----Chemo_group=1   ooo Censored Chemo_group=1

-----Chemo_group=2   ooo Censored Chemo_group=2

-----Chemo_group=3   ooo Censored Chemo_group=3

 

but intstead, it will be nice if I could do the following without changing the variable Chemo_group,

 

STRATA:

-----Chemo_group=Arimidex    ooo Censored Chemo_group=Armidex  

-----Chemo_group=Megace     ooo Censored Chemo_group=Megace  

-----Chemo_group=Efudex       ooo Censored Chemo_group=Efudex  

 

Any help or advice will be appreciated.

 

Thank You.

 

1 REPLY 1
Reeza
Super User

Depending on your data look at either applying a label or proc format. 

 

Proc format will change the values in a variable. 

 

A label will,change the display name of a variable. 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 1809 views
  • 0 likes
  • 2 in conversation