BookmarkSubscribeRSS Feed
lillymaginta1
Obsidian | Level 7

Hi Everyone,

I am trying to adjust the start of the survival curve in proc lifetest statement. For example, would it be possible to make the y-axis start from 0.2 instead of 0? here is my statement : 

proc lifetest data=test plots=survival(cb=hw test);
   time period1 * outcome1(0);
   strata drug;
run;
2 REPLIES 2
lillymaginta1
Obsidian | Level 7

Thank you for the suggestion! I was able to use the following statement : 

%newsurv(DATA=nt, TIME= Time, CENS=outcome, CEN_VL=0, SUMMARY=0, CLASS=drug,    COLOR=black gray, PATTERN=solid, LINESIZE=1pt, SYMBOLSIZE=1pt, ymin= 20,
RISKLIST=0 to 100 by 10,RISKLOCATION=BOTTOM,RISKCOLOR=1);

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.

Explore 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
  • 1410 views
  • 1 like
  • 2 in conversation