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;
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.