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 Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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