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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 519 views
  • 1 like
  • 2 in conversation