HI,
I AM GENERATING KAPLAN MEIER CURVE IN SAS.
1. I WANT X-AXIS TO SHOW 0 TO 180, BY INTERVALS OF 30.
2. I WANT Y-AXIS TO BE FLIPPED; INSTEAD OF 0 TO 1, I WANT IT TO SHOW 1 TO 0 (TO HAVE THE CURVE FLIPPED). HOW DO I DO THIS IN THE BELOW PROC LIFETEST CODE? I TRIED YOPTIONS, XOPTIONS, PLOT OPTION, BUT NOTHING SEEM TO WORK.
PROC LIFETEST DATA=combo_by_state;
TIME SURVT*EVENT(0);
STRATA STATE;
WHERE PANDEMIC=1;
RUN;
For X Axis specify a timelist in the PROC LIFETEST
proc lifetest data=combo_by_state timelist=(0 to 180 by 30);
@suhana1211 wrote:
HI,
I AM GENERATING KAPLAN MEIER CURVE IN SAS.
1. I WANT X-AXIS TO SHOW 0 TO 180, BY INTERVALS OF 30.
2. I WANT Y-AXIS TO BE FLIPPED; INSTEAD OF 0 TO 1, I WANT IT TO SHOW 1 TO 0 (TO HAVE THE CURVE FLIPPED). HOW DO I DO THIS IN THE BELOW PROC LIFETEST CODE? I TRIED YOPTIONS, XOPTIONS, PLOT OPTION, BUT NOTHING SEEM TO WORK.
PROC LIFETEST DATA=combo_by_state;
TIME SURVT*EVENT(0);
STRATA STATE;
WHERE PANDEMIC=1;
RUN;
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
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.