Help using Base SAS procedures

proc lifetest maxtime

Occasional Contributor
Posts: 8

proc lifetest maxtime

i am using hte following code:

ods html;

ods graphics on;

ods select survivalplot(persist) ;

proc lifetest data=er_or_read  intervals=0 to 180 by 30 maxtime=180 method=km plots=survival (cb=hw atrisk=0 to 180 by 30) ;

  time fudays_death*dead(0);

  strata case;


ods graphics off;

ods html close;

but my plot has tick marks at 0,50,100 and 150 (want to be 0,30,60,90,120,180)  and # at risk at 0,30,60,90,120,150,180 (which i want)

anything i can easily do to mend this?

Super User
Posts: 23,776

Re: proc lifetest maxtime

Posted in reply to Stephanie55901

1. Try the timelist option instead of intervals.

What version of SAS are you on?

Ask a Question
Discussion stats
  • 1 reply
  • 2 in conversation