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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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