BookmarkSubscribeRSS Feed
n6
Quartz | Level 8 n6
Quartz | Level 8
'm doing a simple PROC LIFETEST. If I don't do ODS GRAPHICS ON; then I get the K-M survival plot in the regular SAS Graph window. But since it looks better in the graphics window, I tried doing ODS GRAPHICS ON; first. But when I do that and then submit the code, I don't get a survival curve in any window. I don't get an error in the Log window. The Log window looks normal and the output in the Output window looks normal. But I just don't get a survival curve. Any ideas?
3 REPLIES 3
Doc_Duke
Rhodochrosite | Level 12
check the ODS options in the LIFETEST documentation. You have to add something to the PROC statement to get the K-M plots.
n6
Quartz | Level 8 n6
Quartz | Level 8
D'oh, that was so dumb of me. I had forgotten to do ODS HTML; first. I guess if you don't tell if it you want HTML or RTF or whatever then ODS GRAPHICS ON; doesn't do you any good. Thanks for your help.
reb
Calcite | Level 5 reb
Calcite | Level 5
You need something like this in the first two lines:

ods graphics on;

proc lifetest data=A NOTABLE plots=(s(name=surv2));

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 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is ANOVA?

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.

Discussion stats
  • 3 replies
  • 1928 views
  • 0 likes
  • 3 in conversation