Statistical Procedures

Programming the statistical procedures from SAS
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-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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