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. 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!

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
  • 1 reply
  • 1910 views
  • 0 likes
  • 2 in conversation