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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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
  • 1670 views
  • 0 likes
  • 3 in conversation