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);

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 lock in 2025 pricing—just $495!

Register 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
  • 887 views
  • 1 like
  • 2 in conversation