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;
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!
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.